Preserve line number information.

llvm-svn: 131112
This commit is contained in:
Devang Patel 2011-05-10 00:03:11 +00:00
parent 339ac4369d
commit 3fd06f760b
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
Call->takeName(II);
Call->setCallingConv(II->getCallingConv());
Call->setAttributes(II->getAttributes());
Call->setDebugLoc(II->getDebugLoc());
// Anything that used the value produced by the invoke instruction
// now uses the value produced by the call instruction. Note that we