mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix a warning in builds without asserts.
llvm-svn: 209012
This commit is contained in:
parent
a844851458
commit
f942b6eb61
@ -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…
Reference in New Issue
Block a user