aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp')
-rw-r--r--lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp
index cccc5cee5a..eaaa85a164 100644
--- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp
+++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp
@@ -449,6 +449,10 @@ bool NaClBitcodeReader::ParseTypeTableBody() {
ResultTy = Type::getDoubleTy(Context);
break;
case naclbitc::TYPE_CODE_LABEL: // LABEL
+ // TODO(mseaborn): Remove this case when we drop support for v1
+ // of the PNaCl bitcode format.
+ if (GetPNaClVersion() >= 2)
+ return Error("Label type not supported in PNaCl bitcode");
ResultTy = Type::getLabelTy(Context);
break;
case naclbitc::TYPE_CODE_INTEGER: // INTEGER: [width]