[llvm] [lld] [clang] [clang-tools-extra] [Object][Wasm] Allow parsing of GC types in type and table sections (PR #79235)

Derek Schuff via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 17:34:06 PST 2024


================
@@ -259,10 +259,13 @@ class InputFunction : public InputChunk {
         file->codeSection->Content.slice(inputSectionOffset, function->Size);
     debugName = function->DebugName;
     comdat = function->Comdat;
+    assert(s.Kind != WasmSignature::Placeholder);
----------------
dschuff wrote:

I added a more explicit check in `createObjectFile`. I don't have test because I haven't yet successfully created a file with both GC types and a linking section that wasn't also rejected by the object file parser. But a little redundancy in the checks seems fine.

https://github.com/llvm/llvm-project/pull/79235


More information about the cfe-commits mailing list