I am developing a new pass using LLVM-13 from Homebrew and I got a strange bug that whenever I call Constant::signExtend the pass crashes with opt invoked. However, when I use Linux x64 (also LLVM-14) it is not an issue. I did not find any recent commit on LLVM's Constant::signExtend so I guess it is either related to Homebrew or M1?
I am developing a new pass using LLVM-13 from Homebrew and I got a strange bug that whenever I call
Constant::signExtend
the pass crashes withopt
invoked. However, when I use Linux x64 (also LLVM-14) it is not an issue. I did not find any recent commit on LLVM'sConstant::signExtend
so I guess it is either related to Homebrew or M1?To reproduce this bug:
Create a file
a.c