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
Just a heads up: The API of builder.rs might lead one to think that all the build methods for arithmetic will automatically dispatch to floating point or integer versions of the requested operations based on the input Value types
But the build_neg method does not dispatch to LLVMBuildFNeg when given a floating point value.
(This is easy for client to work around, e.g. by using builder.build_sub(0.0, arg); but it left me scratching my head for quite a while when my code was not passing the LLVM function validator.)
The text was updated successfully, but these errors were encountered:
Just a heads up: The API of builder.rs might lead one to think that all the build methods for arithmetic will automatically dispatch to floating point or integer versions of the requested operations based on the input
Value
typesBut the
build_neg
method does not dispatch toLLVMBuildFNeg
when given a floating point value.(This is easy for client to work around, e.g. by using
builder.build_sub(0.0, arg)
; but it left me scratching my head for quite a while when my code was not passing the LLVM function validator.)The text was updated successfully, but these errors were encountered: