aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-03-11 19:52:52 +0000
committerJim Grosbach <grosbach@apple.com>2011-03-11 19:52:52 +0000
commit6a44adade20bdea80c76b68833ec5eff5baaba98 (patch)
tree6d8ccc1987e036256f0b2bad67aa57c0c1c9a685 /utils
parente4f6d7461aea7308e85c219c1cea5bd6059d4841 (diff)
downloadexternal_llvm-6a44adade20bdea80c76b68833ec5eff5baaba98.zip
external_llvm-6a44adade20bdea80c76b68833ec5eff5baaba98.tar.gz
external_llvm-6a44adade20bdea80c76b68833ec5eff5baaba98.tar.bz2
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/TGParser.cpp1
1 files changed, 1 insertions, 0 deletions
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 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
s << "Type mismatch for list, expected list type, got "
<< ItemType->getAsString();
TokError(s.str());
+ return 0;
}
GivenListTy = ListType;
}