commit | 6a44adade20bdea80c76b68833ec5eff5baaba98 | [log] [tgz] |
---|---|---|
author | Jim Grosbach <grosbach@apple.com> | Fri Mar 11 19:52:52 2011 +0000 |
committer | Jim Grosbach <grosbach@apple.com> | Fri Mar 11 19:52:52 2011 +0000 |
tree | 6d8ccc1987e036256f0b2bad67aa57c0c1c9a685 | |
parent | e4f6d7461aea7308e85c219c1cea5bd6059d4841 [diff] [blame] |
Add missing 'return on failure'. Previously we'd crash after emitting the diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127480 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp index f6041be..59097f9 100644 --- a/utils/TableGen/TGParser.cpp +++ b/utils/TableGen/TGParser.cpp
@@ -1153,6 +1153,7 @@ s << "Type mismatch for list, expected list type, got " << ItemType->getAsString(); TokError(s.str()); + return 0; } GivenListTy = ListType; }