[polly] r240172 - Fix the clang -Werror build (-Wbraced-scalar-init)
David Blaikie
dblaikie at gmail.com
Fri Jun 19 13:07:18 PDT 2015
Author: dblaikie
Date: Fri Jun 19 15:07:18 2015
New Revision: 240172
URL: http://llvm.org/viewvc/llvm-project?rev=240172&view=rev
Log:
Fix the clang -Werror build (-Wbraced-scalar-init)
Modified:
polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp
Modified: polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp?rev=240172&r1=240171&r2=240172&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp Fri Jun 19 15:07:18 2015
@@ -70,7 +70,7 @@ void RuntimeDebugBuilder::createGPUVAPri
int Offset = 0;
for (auto Val : Values) {
- auto Ptr = Builder.CreateGEP(DataPtr, {Builder.getInt64(Offset)});
+ auto Ptr = Builder.CreateGEP(DataPtr, Builder.getInt64(Offset));
Type *Ty = Val->getType();
if (Ty->isFloatingPointTy()) {
More information about the llvm-commits
mailing list