================
@@ -25,6 +25,9 @@ def CIR_Dialect : Dialect {
   let cppNamespace = "::cir";
 
   let useDefaultAttributePrinterParser = 1;
+  let hasOperationAttrVerify = 1;
+  let hasRegionArgAttrVerify = 1;
+  let hasRegionResultAttrVerify = 1;
----------------
Men-cotton wrote:

Yes. Without it, an OpenCL version attribute on a function result would bypass 
the module-only placement check; `clang/test/CIR/IR/invalid-version.cir` covers 
this path.


https://github.com/llvm/llvm-project/pull/219687
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to