[clang] [CIR] Add poison attribute (PR #150760)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 26 11:21:42 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list