зеркало из https://github.com/microsoft/clang-1.git
Do not check use_empty() before invoking replaceAllUsesWith().
Let replaceAllUsesWith() adjust VHs even though there are no uses. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
c37691068d
Коммит
3b122bc5f1
|
@ -1110,8 +1110,9 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
|
|||
NewCall->setCallingConv(CI->getCallingConv());
|
||||
|
||||
// Finally, remove the old call, replacing any uses with the new one.
|
||||
if (!CI->use_empty())
|
||||
CI->replaceAllUsesWith(NewCall);
|
||||
|
||||
|
||||
CI->eraseFromParent();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче