[llvm-branch-commits] [llvm-branch] r133587 - /llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp
Chris Lattner
sabre at nondot.org
Tue Jun 21 17:32:50 PDT 2011
Author: lattner
Date: Tue Jun 21 19:32:50 2011
New Revision: 133587
URL: http://llvm.org/viewvc/llvm-project?rev=133587&view=rev
Log:
The typeid of "%4 = type {}" is 4, not the current count of the unnamed types.
This fixes an error on test/Assembler/unnamed.ll
Modified:
llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp
Modified: llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp?rev=133587&r1=133586&r2=133587&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp Tue Jun 21 19:32:50 2011
@@ -294,7 +294,7 @@
/// ::= LocalVarID '=' 'type' StructType
bool LLParser::ParseUnnamedType() {
LocTy TypeLoc = Lex.getLoc();
- unsigned TypeID = NumberedTypes.size();
+ unsigned TypeID = Lex.getUIntVal();
Lex.Lex(); // eat LocalVarID;
if (ParseToken(lltok::equal, "expected '=' after name") ||
More information about the llvm-branch-commits
mailing list