Asan complained about uninitialized bool
invalid-bool-load
llvm/lib/Target/X86/AsmParser/X86Operand.h:389:12: runtime error: load
of value 171, which is not a valid value for type 'bool'
Differential D122405
[llvm] Initialize and move UseUpRegs outside of `union` MemOp struct. pifon2a on Mar 24 2022, 8:31 AM. Authored by
Details Asan complained about uninitialized bool invalid-bool-load
Diff Detail
Event TimelineComment Actions First thanks very much for this patch! I didn't understand why Buildbot fail on clang/test/CodeGen/ms-inline-asm.c on sanitizer-x86_64-linux-bootstrap-ubsan This test passed in my local machine (before/without this patch). $../build-all/bin/llvm-lit clang/test/CodeGen/ms-inline-asm.c -- Testing: 1 tests, 1 workers -- PASS: Clang :: CodeGen/ms-inline-asm.c (1 of 1) Testing Time: 0.51s Passed: 1 Comment Actions Not sure if you need to run asan check mannually. Here are config for sanitizer-x86_64-linux-bootstrap-ubsan: https://github.com/llvm/llvm-zorg/blob/main/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh Comment Actions Thanks for reminding! I think this must be compiler-rt use X86Operand code problem. Any way, these has be fixed by pifon2a. There is no logic changes, Let it be : ) Comment Actions
It's not "uninitialized" :) It's a value outside of {0, 1}. |