]> granicus.if.org Git - clang/commitdiff
Remove unnecessary braces; this resolves against a
authorJohn McCall <rjmccall@apple.com>
Tue, 8 Sep 2015 08:57:00 +0000 (08:57 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 8 Sep 2015 08:57:00 +0000 (08:57 +0000)
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

lib/CodeGen/CGBuilder.h

index b46f502a7113fc52495d6793bee5e5582b4ebd5a..489f3413d4b88d79020c85e987b13c8170e7f02e 100644 (file)
@@ -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));
   }