strength reduce this call away.
llvm-svn: 92253
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user