[llvm] [IR] Allow nofree metadata to inttoptr (PR #153149)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 00:50:39 PDT 2025
================
@@ -5022,6 +5023,15 @@ void Verifier::visitDereferenceableMetadata(Instruction& I, MDNode* MD) {
&I);
}
+void Verifier::visitNofreeMetadata(Instruction &I, MDNode *MD) {
+ Check(I.getType()->isPointerTy(), "nofree apply only to pointer types", &I);
----------------
nikic wrote:
```suggestion
Check(I.getType()->isPointerTy(), "nofree applies only to pointer types", &I);
```
https://github.com/llvm/llvm-project/pull/153149
More information about the llvm-commits
mailing list