[Bug 272075] Toolchain fails to build devel/phasar: error: expected type: store i32 0, ptr %retval, align 4

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Jun 2023 07:27:08 UTC

--- Comment #3 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Mark Millard from comment #1)
No indeed. Care should be taken to not mix different versions of llvm's bitcode
(.bc or .ll files. That is:

/usr/bin/c++ -std=c++17 -fno-discard-value-names -emit-llvm -S -Xclang
-disable-O0-optnone -g
-o array_01_cpp_m2r_dbg.ll && /usr/local/llvm14/bin/opt -mem2reg -S
array_01_cpp_m2r_dbg.ll -o array_01_cpp_m2r_dbg.ll

will only work if /usr/bin/c++ and /usr/local/llvm14/bin/opt are the same
version, llvm 14. It is advisable to use /usr/local/llvm/bin/clang++ to compile
the .cpp to .ll instead.

You are receiving this mail because:
You are the assignee for the bug.