mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 01:15:32 +00:00
Fix a warning in builds without asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c2d969bb0
commit
dedd6203ad
@ -317,8 +317,7 @@ static GlobalObject &findReplacementForAliasUse(Value &C) {
|
|||||||
|
|
||||||
static void replaceAliasUseWith(Use &U, Value *New) {
|
static void replaceAliasUseWith(Use &U, Value *New) {
|
||||||
GlobalObject &Replacement = findReplacementForAliasUse(*New);
|
GlobalObject &Replacement = findReplacementForAliasUse(*New);
|
||||||
auto *Old = &cast<GlobalObject>(*U);
|
assert(&cast<GlobalObject>(*U) != &Replacement &&
|
||||||
assert(Old != &Replacement &&
|
|
||||||
"replaceAliasUseWith cannot form an alias cycle");
|
"replaceAliasUseWith cannot form an alias cycle");
|
||||||
U.set(&Replacement);
|
U.set(&Replacement);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user