Skip to content
Snippets Groups Projects
Commit 0402dc0e authored by John McCall's avatar John McCall
Browse files

Remove unnecessary braces; this resolves against a

single-pointer overload instead of the ArrayRef one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246988 91177308-0d34-0410-b5e6-96231b3b80d8
parent 9b4c81d4
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ public:
CharUnits EltSize,
const llvm::Twine &Name = "") {
return Address(CreateInBoundsGEP(Addr.getElementType(), Addr.getPointer(),
{getSize(Index)}, Name),
getSize(Index), Name),
Addr.getAlignment().alignmentAtOffset(Index * EltSize));
}
......@@ -239,7 +239,7 @@ public:
Address CreateConstGEP(Address Addr, uint64_t Index, CharUnits EltSize,
const llvm::Twine &Name = "") {
return Address(CreateGEP(Addr.getElementType(), Addr.getPointer(),
{getSize(Index)}, Name),
getSize(Index), Name),
Addr.getAlignment().alignmentAtOffset(Index * EltSize));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment