diff options
| author | Eric Christopher <echristo@apple.com> | 2010-03-19 23:04:23 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-03-19 23:04:23 +0000 |
| commit | fd88e79b09630b7a26508ab153f676d29af4f972 (patch) | |
| tree | 688054401efe6c6ed8adc71b6d06221a536c7291 /utils/TableGen/CodeGenTarget.cpp | |
| parent | 899588eebff371c519d09d10dbadef03dc810ba1 (diff) | |
| download | external_llvm-fd88e79b09630b7a26508ab153f676d29af4f972.zip external_llvm-fd88e79b09630b7a26508ab153f676d29af4f972.tar.gz external_llvm-fd88e79b09630b7a26508ab153f676d29af4f972.tar.bz2 | |
Revert r99009 temporarily it seems to be breaking the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
| -rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 0d29a2f..79bc30d 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -490,15 +490,12 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { OverloadedVTs.push_back(VT); isOverloaded |= true; } - IS.RetVTs.push_back(VT); IS.RetTypeDefs.push_back(TyEl); } - - if (IS.RetVTs.size() == 1 && IS.RetVTs[0] == MVT::isVoid) { - IS.RetVTs.pop_back(); - IS.RetTypeDefs.pop_back(); - } + + if (IS.RetVTs.size() == 0) + throw "Intrinsic '"+DefName+"' needs at least a type for the ret value!"; // Parse the list of parameter types. TypeList = R->getValueAsListInit("ParamTypes"); |
