diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-12 22:29:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-12 22:29:02 +0000 |
commit | d35e2e0c35432bd3a8c195fe62d53a1c3bbf37c0 (patch) | |
tree | 2e8c75950fb0e30e602cee5fa7ffbe4740b7456e /lib/CodeGen/CGExpr.cpp | |
parent | 7c173cbcd7830546b4d5ba58559716c096875b0e (diff) |
There is no need to attach debug location info with alloca instruction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 7a124b6d13..d89da3224f 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -31,11 +31,7 @@ llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(const llvm::Type *Ty, const char *Name) { if (!Builder.isNamePreserving()) Name = ""; - llvm::AllocaInst *AI = new llvm::AllocaInst(Ty, 0, Name, AllocaInsertPt); -#ifdef ATTACH_DEBUG_INFO_TO_AN_INSN - Builder.SetDebugLocation(AI); -#endif - return AI; + return new llvm::AllocaInst(Ty, 0, Name, AllocaInsertPt); } /// EvaluateExprAsBool - Perform the usual unary conversions on the specified |