mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Adjust to changes in APIs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19958 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -98,11 +98,11 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
|
||||
// functions and that the Old function has no varargs fns specified. In
|
||||
// otherwords it's just <retty> (...)
|
||||
//
|
||||
if (!Old->use_empty()) { // Avoid making the CPR unless we really need it
|
||||
if (!Old->use_empty()) {
|
||||
Value *Replacement = Concrete;
|
||||
if (Concrete->getType() != Old->getType())
|
||||
Replacement = ConstantExpr::getCast(Concrete,Old->getType());
|
||||
NumResolved += Old->use_size();
|
||||
Replacement = ConstantExpr::getCast(Concrete, Old->getType());
|
||||
NumResolved += Old->getNumUses();
|
||||
Old->replaceAllUsesWith(Replacement);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user