summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.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/CGBlocks.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/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 5f73d4cf791..d60b5fbb70d 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1479,8 +1479,8 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD,
const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable);
if (capture.isConstant()) {
auto addr = LocalDeclMap.find(variable)->second;
- DI->EmitDeclareOfAutoVariable(variable, addr.getPointer(),
- Builder);
+ (void)DI->EmitDeclareOfAutoVariable(variable, addr.getPointer(),
+ Builder);
continue;
}
OpenPOWER on IntegriCloud