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
which is not a valid module in LLVM 10, nor in 9 or 8 which is all I tested. I'm pretty sure it used to be at some point so we may need to figure out when that changed and update the Module::add_global_metadata to either build an MDNode wrapping an MDString when that was made invalid, or if this was never valid then to change its type signature to not accept MDStrings.
LLVM Version (please complete the following information):
LLVM Version: 10
Inkwell Branch Used: master
Additional Context
The transform I'm proposing that we create:
To Reproduce
Describe the Bug
The problem is on this line:
We can only call
LLVMAddNamedMetadataOperand
on an MDNode or a "ConstantAsMetadata" which is ValueAsMetadata for llvm::Constant.Expected Behavior
The test is trying to build the module:
which is not a valid module in LLVM 10, nor in 9 or 8 which is all I tested. I'm pretty sure it used to be at some point so we may need to figure out when that changed and update the Module::add_global_metadata to either build an MDNode wrapping an MDString when that was made invalid, or if this was never valid then to change its type signature to not accept MDStrings.
LLVM Version (please complete the following information):
Additional Context
The transform I'm proposing that we create:
when asked to add a string directly to a global metadata.
I'm not sure about the ConstantAsMetadata thing, I tried putting constants into metadata nods and it was not accepted by the parser.
The text was updated successfully, but these errors were encountered: