diff options
Diffstat (limited to 'lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp')
-rw-r--r-- | lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp index c826ab3353..41acb6f999 100644 --- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp +++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp @@ -326,6 +326,10 @@ bool NaClBitcodeReader::ParseTypeTableBody() { break; case naclbitc::TYPE_CODE_POINTER: { // POINTER: [pointee type] or // [pointee type, address space] + // TODO(mseaborn): Remove this case when we drop support for v1 + // of the PNaCl bitcode format. + if (GetPNaClVersion() >= 2) + return Error("Pointer types not supported in PNaCl bitcode"); if (Record.size() < 1) return Error("Invalid POINTER type record"); unsigned AddressSpace = 0; |