diff options
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index a3c02862007..d734e4ea818 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -317,8 +317,7 @@ static GlobalObject &findReplacementForAliasUse(Value &C) { static void replaceAliasUseWith(Use &U, Value *New) { GlobalObject &Replacement = findReplacementForAliasUse(*New); - auto *Old = &cast<GlobalObject>(*U); - assert(Old != &Replacement && + assert(&cast<GlobalObject>(*U) != &Replacement && "replaceAliasUseWith cannot form an alias cycle"); U.set(&Replacement); } |