From f942b6eb61fed900395bdbcc1dfd969dbfc28f3a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 16 May 2014 20:05:08 +0000 Subject: [PATCH] Fix a warning in builds without asserts. llvm-svn: 209012 --- lib/IR/Value.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index a3c02862007..d734e4ea818 100644 --- a/lib/IR/Value.cpp +++ b/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(*U); - assert(Old != &Replacement && + assert(&cast(*U) != &Replacement && "replaceAliasUseWith cannot form an alias cycle"); U.set(&Replacement); }