You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at /home/ju/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inkwell-0.5.0/src/values/fn_value.rs:48:9:
assertion failed: !LLVMIsAFunction(value).is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
CallSiteValue::get_called_fn_value() fails it assert when the callee is a PointerValue.
Is there a way to tell if the callee is a PointerValue or a FunctionValue ?
Describe the Bug
CallSiteValue::get_called_fn_value()
fails it assert when the callee is aPointerValue
.Is there a way to tell if the callee is a
PointerValue
or aFunctionValue
?To Reproduce
Expected Behavior
A primitive should be provided to distinguish calls to
PointerValue
from calls toFunctionValue
.LLVM Version (please complete the following information):
Desktop (please complete the following information):
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: