Issue |
83125
|
Summary |
valgrind error in llvm::APInt::setBits
|
Labels |
new issue
|
Assignees |
|
Reporter |
dcb314
|
This C code:
int CoordType;
void Distance_TOR_3D() {
if (CoordType != Distance_TOR_3D)
Distance_TOR_3D();
}
does this with recent clang trunk:
$ valgrind -q --trace-children=yes /home/dcb38/llvm/results/bin/clang -c -O1 bug36.c
bug36.c:3:17: warning: comparison between pointer and integer ('int' and 'void (
*)()') [-Wpointer-integer-compare]
3 | if (CoordType != Distance_TOR_3D)
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
==1082850== Conditional jump or move depends on uninitialised value(s)
==1082850== at 0xCBACA9: llvm::APInt::setBits(unsigned int, unsigned int) (in
/home/dcb38/llvm/results.20240227/bin/clang-19)
==1082850== by 0x1153296: computeKnownBits(llvm::Value const*, llvm::APInt co
nst&, llvm::KnownBits&, unsigned int, llvm::SimplifyQuery const&) (in /home/dcb3
8/llvm/results.20240227/bin/clang-19)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs