r246988 - Remove unnecessary braces; this resolves against a
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 01:57:00 PDT 2015
Author: rjmccall
Date: Tue Sep 8 03:57:00 2015
New Revision: 246988
URL: http://llvm.org/viewvc/llvm-project?rev=246988&view=rev
Log:
Remove unnecessary braces; this resolves against a
single-pointer overload instead of the ArrayRef one.
Modified:
cfe/trunk/lib/CodeGen/CGBuilder.h
Modified: cfe/trunk/lib/CodeGen/CGBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuilder.h?rev=246988&r1=246987&r2=246988&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuilder.h (original)
+++ cfe/trunk/lib/CodeGen/CGBuilder.h Tue Sep 8 03:57:00 2015
@@ -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));
}
More information about the cfe-commits
mailing list