| Issue |
58153
|
| Summary |
Segfault when calling LLVMBuildICmp / LLVMBuildFCmp
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
vanelk
|
I am currently building a compiler and using the LLVM C API when I call LLVMBuildICmp or LLVMBuildFCmp on any value it causes me to get a segfault. I first thought I got the wrong opcodes/predicates so I tested with LLVMConstICmp and LLVMConstFCmp and they work perfectly. The issue is I cannot use LLVMConst functions on variables. I debugged the segfault and all seem to it crashes in the function. `llvm::Constant::isNullValue()` and `llvm::APFloat::Storage::Storage(llvm::detail::IEEEFloat, llvm::fltSemantics const&)` for my ints and floats respectively. I would be grateful for any help.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs