Fix -Asserts build
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 17 Jun 2011 22:21:12 +0000 (22:21 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 17 Jun 2011 22:21:12 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133305 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index 9096120c2d16ca67c0f58c209ab13d25c7217579..59725b7ac83f8fe04226ea796b6c6a9a60b753cd 100644 (file)
@@ -356,8 +356,7 @@ bool LLParser::ParseNamedType() {
   }
 
   // Inserting a name that is already defined, get the existing name.
-  const Type *Existing = M->getTypeByName(Name);
-  assert(Existing && "Conflict but no matching type?!");
+  assert(M->getTypeByName(Name) && "Conflict but no matching type?!");
 
   // Otherwise, this is an attempt to redefine a type, report the error.
   return Error(NameLoc, "redefinition of type named '" + Name + "' of type '" +