mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
PR9604; try to deal with RAUW updates correctly in the AST. I'm not convinced
it's completely safe to cache the AST across LICM runs even with this fix, but this fix can't hurt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -602,6 +602,10 @@ void AliasSetTracker::ASTCallbackVH::deleted() {
|
||||
// this now dangles!
|
||||
}
|
||||
|
||||
void AliasSetTracker::ASTCallbackVH::allUsesReplacedWith(Value *V) {
|
||||
AST->copyValue(getValPtr(), V);
|
||||
}
|
||||
|
||||
AliasSetTracker::ASTCallbackVH::ASTCallbackVH(Value *V, AliasSetTracker *ast)
|
||||
: CallbackVH(V), AST(ast) {}
|
||||
|
||||
|
Reference in New Issue
Block a user