summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index d34b0f5ea38..45cd6a70a5d 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -29,7 +29,8 @@ using namespace CodeGen;
/// block.
llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(const llvm::Type *Ty,
const char *Name) {
- // FIXME: Should not pass name if names are disabled in IRBuilder.
+ if (!Builder.isNamePreserving())
+ Name = "";
return new llvm::AllocaInst(Ty, 0, Name, AllocaInsertPt);
}
OpenPOWER on IntegriCloud