[llvm-commits] [llvm] r131575 - /llvm/trunk/include/llvm/Support/IRBuilder.h
Devang Patel
dpatel at apple.com
Wed May 18 13:58:47 PDT 2011
Author: dpatel
Date: Wed May 18 15:58:47 2011
New Revision: 131575
URL: http://llvm.org/viewvc/llvm-project?rev=131575&view=rev
Log:
Set debug location while setting insertion point.
Modified:
llvm/trunk/include/llvm/Support/IRBuilder.h
Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=131575&r1=131574&r2=131575&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Wed May 18 15:58:47 2011
@@ -80,6 +80,7 @@
void SetInsertPoint(Instruction *I) {
BB = I->getParent();
InsertPt = I;
+ SetCurrentDebugLocation(I->getDebugLoc());
}
/// SetInsertPoint - This specifies that created instructions should be
More information about the llvm-commits
mailing list