mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-30 16:17:05 +00:00
RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1305,8 +1305,7 @@ makeStatepointExplicitImpl(const CallSite &CS, /* to replace */
|
|||||||
assert((toReplace->hasNUses(0) || toReplace->hasNUses(1)) &&
|
assert((toReplace->hasNUses(0) || toReplace->hasNUses(1)) &&
|
||||||
"only valid use before rewrite is gc.result");
|
"only valid use before rewrite is gc.result");
|
||||||
if (toReplace->hasOneUse()) {
|
if (toReplace->hasOneUse()) {
|
||||||
Instruction *GCResult = cast<Instruction>(*toReplace->user_begin());
|
assert(isGCResult(cast<Instruction>(*toReplace->user_begin())));
|
||||||
assert(isGCResult(GCResult));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user