================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to