[llvm] [ThinLTOBitcodeWriter] Do not crash on a typed declaration (PR #69564)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 21:04:01 PDT 2023


================
@@ -0,0 +1,12 @@
+;; Generating bitcode files with split LTO modules should not crash if there are
+;; typed declarations in sources.
+
+; RUN: opt -passes=elim-avail-extern --thinlto-bc --thinlto-split-lto-unit -o - %s
----------------
teresajohnson wrote:

Rather than run elim-avail-extern, you could just change the IR of the test to directly contain the output of that pass (a declaration with type metadata), and only run the bitcode writer.

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


More information about the llvm-commits mailing list