[llvm-branch-commits] [llvm-branch] r133575 - /llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp
Chris Lattner
sabre at nondot.org
Tue Jun 21 16:20:14 PDT 2011
Author: lattner
Date: Tue Jun 21 18:20:14 2011
New Revision: 133575
URL: http://llvm.org/viewvc/llvm-project?rev=133575&view=rev
Log:
fix a bug found by test/Assembler/2002-01-24-ValueRefineAbsType.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=133575&r1=133574&r2=133575&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/AsmParser/LLParser.cpp Tue Jun 21 18:20:14 2011
@@ -1473,11 +1473,12 @@
bool isPacked = false;
if (EatIfPresent(lltok::less)) {
- if (Lex.getKind() != lltok::lbrace)
- return TokError("expected packed struct type in definition");
isPacked = true;
}
-
+
+ if (Lex.getKind() != lltok::lbrace)
+ return TokError("expected '{' in struct type definition");
+
SmallVector<Type*, 8> Body;
if (ParseStructBody(Body) ||
(isPacked && ParseToken(lltok::greater, "expected '>' in packed struct")))
More information about the llvm-branch-commits
mailing list