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 | dac79decf36ded8435fa319945fd477b6fc4de50 (patch) | |
| tree | 3def6044c12d36908c2e44eedf9298890bdefbb9 /clang/lib | |
| parent | 551e112e99ffad1f39342e9ade6a6325ca2e04d0 (diff) | |
| download | bcm5719-llvm-dac79decf36ded8435fa319945fd477b6fc4de50.tar.gz bcm5719-llvm-dac79decf36ded8435fa319945fd477b6fc4de50.zip | |
There is no need to attach debug location info with alloca instruction.
llvm-svn: 83913
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 7a124b6d130..d89da3224fc 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/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 |

