New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lli -force-interpreter=true crash at APInt::operator== #1665
Comments
The issue here is this code: %tmp15.i.i.i = call i32 @malloc( i32 10256 ) ; [#uses=3] LLI doesn't know how to coerce the result of malloc to a 32-bit integer from a One solution is to just fix the code (define it as returning a void* and then Its not clear how to fix LLI except to make it check for "weird" prototypes of |
Perhaps lli should issue a warning that the function its calling is not |
I have modified LLI to generate this kind of assert: lli: ExternalFunctions.cpp:157: llvm::GenericValue It will now do this for all functions that should return pointer values (things I think this is about as far as we can go with this. |
Fixed with this patch: |
…mean-forever-sometimes Cherry-pick a couple of test fixes
Extended Description
$ lli -force-interpreter=true ./apint.bc
lli: lib/Support/APInt.cpp:491: bool llvm::APInt::operator==(const
llvm::APInt&) const: Assertion `BitWidth == RHS.BitWidth && "Comparison
requires equal bit widths"' failed.
I couldn't get bugpoint to reduce the testcase, so I'm attaching
the compressed bytecode in all its massiveness.
The text was updated successfully, but these errors were encountered: