Set debug location while setting insertion point.

llvm-svn: 131575
This commit is contained in:
Devang Patel 2011-05-18 20:58:47 +00:00
parent 48ea9389dc
commit f1e313af0f

View File

@ -80,6 +80,7 @@ public:
void SetInsertPoint(Instruction *I) {
BB = I->getParent();
InsertPt = I;
SetCurrentDebugLocation(I->getDebugLoc());
}
/// SetInsertPoint - This specifies that created instructions should be