================
@@ -492,6 +506,12 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *CE) {
     if (!FromT || !ToT)
       return false;
 
+    if (!this->isValidBitCast(CE)) {
+      if (!this->emitInvalidCast(CastKind::ReinterpretLike, /*Fatal=*/false,
+                                 CE))
+        return false;
+    }
----------------
ojhunt wrote:

Perhaps

```suggestion
    if (!this->isValidBitCast(CE) &&
        !this->emitInvalidCast(CastKind::ReinterpretLike, /*Fatal=*/false, CE))
```


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

Reply via email to