summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2018-02-03 13:55:59 +0000
committerSander de Smalen <sander.desmalen@arm.com>2018-02-03 13:55:59 +0000
commit891af03a55d87939f78740ffdf2e318d301384cf (patch)
tree581031669066e3ef1f6019f86378efb4d109d067 /clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
parent7c11527b0342803b6730ce6b2b66ba02fd182682 (diff)
downloadbcm5719-llvm-891af03a55d87939f78740ffdf2e318d301384cf.tar.gz
bcm5719-llvm-891af03a55d87939f78740ffdf2e318d301384cf.zip
Recommit rL323952: [DebugInfo] Enable debug information for C99 VLA types.
Fixed build issue when building with g++-4.8 (specialization after instantiation). llvm-svn: 324173
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
index 7da8915c844..674e843c997 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
@@ -2232,7 +2232,7 @@ void CGOpenMPRuntimeNVPTX::emitReduction(
llvm::Value *Size = CGF.Builder.CreateIntCast(
CGF.getVLASize(
CGF.getContext().getAsVariableArrayType((*IPriv)->getType()))
- .first,
+ .NumElts,
CGF.SizeTy, /*isSigned=*/false);
CGF.Builder.CreateStore(CGF.Builder.CreateIntToPtr(Size, CGF.VoidPtrTy),
Elem);
OpenPOWER on IntegriCloud