strength reduce this call away.

llvm-svn: 92253
This commit is contained in:
Chris Lattner 2009-12-29 07:49:13 +00:00
parent 68017800cd
commit 3f8e5dd898
1 changed files with 2 additions and 1 deletions

View File

@ -1090,7 +1090,8 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
CI->replaceAllUsesWith(NewCall);
// Copy any custom metadata attached with CI.
CI->getContext().getMetadata().copyMD(CI, NewCall);
if (llvm::MDNode *DbgNode = CI->getMetadata("dbg"))
NewCall->setMetadata("dbg", DbgNode);
CI->eraseFromParent();
}
}