summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuilder.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2015-09-08 08:57:00 +0000
committerJohn McCall <rjmccall@apple.com>2015-09-08 08:57:00 +0000
commitf1044c044a520e5c796fd03cea3a8b38e645a167 (patch)
treeb298c278d1481f7bdd96c8de53045f3ebb11bb00 /clang/lib/CodeGen/CGBuilder.h
parent68be5f21a93e0eea6ab9a02c994d6c1544af932f (diff)
downloadbcm5719-llvm-f1044c044a520e5c796fd03cea3a8b38e645a167.tar.gz
bcm5719-llvm-f1044c044a520e5c796fd03cea3a8b38e645a167.zip
Remove unnecessary braces; this resolves against a
single-pointer overload instead of the ArrayRef one. llvm-svn: 246988
Diffstat (limited to 'clang/lib/CodeGen/CGBuilder.h')
-rw-r--r--clang/lib/CodeGen/CGBuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuilder.h b/clang/lib/CodeGen/CGBuilder.h
index b46f502a711..489f3413d4b 100644
--- a/clang/lib/CodeGen/CGBuilder.h
+++ b/clang/lib/CodeGen/CGBuilder.h
@@ -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));
}
OpenPOWER on IntegriCloud