Open Quuxplusone opened 3 years ago
Attached file_49919.txt
(1187 bytes, text/plain): .ll file
The reason is that ValueEnumerator::incorporateFunction
assumes all sret and byval parameters have associated type information.
Is there a fix for this?
From separate email from Martin Kinkelin
> it was a regression, and the extra type annotations being mandatory
> (well, for bitcode generation only) not mentioned in the LLVM 12.0.0
> changelog IIRC. I've added them in our frontend in the meantime and
> haven't tested any more recent LLVM versions. I've quickly glanced at
> the code in LLVM 12.0.1, and it still seems to assume the types are
> non-null in
>
https://github.com/llvm/llvmproject/blob/fed41342a82f5a3a9201819a82bf7a48313e296b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp#L1003-L1006.
Tom,
Would it still make sense to backport Martin's fix to the 12.x line?
corrected mangled URL:
https://github.com/llvm/llvm-project/blob/fed41342a82f5a3a9201819a82bf7a48313e296b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp#L1003-L1006
It's too late, 12.0.1 has already been released.
file_49919.txt
(1187 bytes, text/plain)