[llvm] [IR] Allow MDString in operand bundles (PR #110805)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 01:59:50 PDT 2024
================
@@ -6216,6 +6225,11 @@ bool LLParser::convertValIDToValue(Type *Ty, ValID &ID, Value *&V,
V = ConstantVector::getSplat(cast<VectorType>(Ty)->getElementCount(),
ID.ConstantVal);
return false;
+ case ValID::t_MDString:
+ if (!Ty->isMetadataTy())
+ return error(ID.Loc, "invalid type for metadata string");
----------------
arsenm wrote:
Test the error case
https://github.com/llvm/llvm-project/pull/110805
More information about the llvm-commits
mailing list