================
@@ -1783,6 +1788,11 @@ static bool isBoolNot(cir::UnaryOp op) {
 //
 // and the argument of the first one (%0) will be used instead.
 OpFoldResult cir::UnaryOp::fold(FoldAdaptor adaptor) {
+  if (auto poison = mlir::dyn_cast_if_present<PoisonAttr>(adaptor.getInput())) 
{
----------------
xlauko wrote:

```suggestion
  if (auto poison = 
mlir::dyn_cast_if_present<cir::PoisonAttr>(adaptor.getInput())) {
```

https://github.com/llvm/llvm-project/pull/150760
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to