Description
I try to run compiler with debug output enabled and optimization (-O1, but fault is caused by any value more than 0). Result:
$ ./build/bin/clang --target=z80 --debug -S -O1 -xc -o- - <<< 'int func(int x, int y) { return x * y; }'
clang-10: /home/bsa/projects/llvm-project/llvm/include/llvm/Support/LowLevelTypeImpl.h:141: unsigned int llvm::LLT::getScalarSizeInBits() const: Assertion `RawData != 0 && "Invalid Type"' failed.
Stack dump:
0. Program arguments: /home/bsa/projects/llvm-project/build/bin/clang-10 -cc1 -triple z80 -S -disable-free -main-file-name crc.c -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -no-integrated-as -mconstructor-aliases -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -resource-dir /home/bsa/projects/llvm-project/build/lib/clang/10.0.0 -O3 -fno-dwarf-directory-asm -fdebug-compilation-dir /home/bsa/projects/llvm-project -ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o crc.s -x c crc.c
- parser at end of file
- Code generation
- Running pass 'Function Pass Manager' on module 'crc.c'.
- Running pass 'RegBankSelect' on function '@sasComputeCrc'
clang itself was compiled by clang-8 (ubuntu amd64) with debug build type.