1
0
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:
Rafael Espindola 2014-05-16 20:05:08 +00:00
parent a844851458
commit f942b6eb61

View File

@ -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);
} }