]> granicus.if.org Git - clang/commitdiff
There is no need to attach debug location info with alloca instruction.
authorDevang Patel <dpatel@apple.com>
Mon, 12 Oct 2009 22:29:02 +0000 (22:29 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 12 Oct 2009 22:29:02 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83913 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index 7a124b6d130e39314312f2d4bc520925b89491fd..d89da3224fc0ee5a8de5bda0b9cc3fd5fb593a4b 100644 (file)
@@ -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