mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable]
llvm-svn: 230168
This commit is contained in:
parent
fbfdfed2c5
commit
5cfb2b228d
@ -1305,8 +1305,7 @@ makeStatepointExplicitImpl(const CallSite &CS, /* to replace */
|
||||
assert((toReplace->hasNUses(0) || toReplace->hasNUses(1)) &&
|
||||
"only valid use before rewrite is gc.result");
|
||||
if (toReplace->hasOneUse()) {
|
||||
Instruction *GCResult = cast<Instruction>(*toReplace->user_begin());
|
||||
assert(isGCResult(GCResult));
|
||||
assert(isGCResult(cast<Instruction>(*toReplace->user_begin())));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user