[cfe-commits] r83913 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Devang Patel
dpatel at apple.com
Mon Oct 12 15:29:02 PDT 2009
Author: dpatel
Date: Mon Oct 12 17:29:02 2009
New Revision: 83913
URL: http://llvm.org/viewvc/llvm-project?rev=83913&view=rev
Log:
There is no need to attach debug location info with alloca instruction.
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=83913&r1=83912&r2=83913&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Mon Oct 12 17:29:02 2009
@@ -31,11 +31,7 @@
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
More information about the cfe-commits
mailing list