[llvm-commits] [llvm] r133305 - /llvm/trunk/lib/AsmParser/LLParser.cpp

Matt Beaumont-Gay matthewbg at google.com
Fri Jun 17 15:21:12 PDT 2011


Author: matthewbg
Date: Fri Jun 17 17:21:12 2011
New Revision: 133305

URL: http://llvm.org/viewvc/llvm-project?rev=133305&view=rev
Log:
Fix -Asserts build

Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=133305&r1=133304&r2=133305&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Fri Jun 17 17:21:12 2011
@@ -356,8 +356,7 @@
   }
 
   // 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 '" +





More information about the llvm-commits mailing list