From 013bcfcfcd04a3469429771e80997c02fdd03501 Mon Sep 17 00:00:00 2001 From: Mark Seaborn Date: Thu, 29 Aug 2013 09:31:36 -0700 Subject: PNaCl bitcode: Remove handling of TYPE_CODE_OPAQUE Opaque struct types should not appear in LLVM IR that passes the PNaCl ABI verifier. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590 TEST=PNaCl toolchain trybots Review URL: https://codereview.chromium.org/23738002 --- lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp') diff --git a/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp b/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp index f72f383c39..d4f7c51749 100644 --- a/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp +++ b/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp @@ -310,7 +310,7 @@ static void WriteTypeTable(const NaClValueEnumerator &VE, AbbrevToUse = TYPE_STRUCT_ANON_ABBREV; } else { if (ST->isOpaque()) { - Code = naclbitc::TYPE_CODE_OPAQUE; + report_fatal_error("Opaque structs not supported in PNaCl bitcode"); } else { Code = naclbitc::TYPE_CODE_STRUCT_NAMED; AbbrevToUse = TYPE_STRUCT_NAMED_ABBREV; -- cgit v1.2.3-70-g09d2