[PATCH] D157200: [clang][Interp] Visit Logical-not operand as bool

2023-09-15 Thread Timm Bäder via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGcd2f2c166203: [clang][Interp] Visit Logical-not operand as bool (authored by tbaeder). Changed prior to commit: https://reviews.llvm.org/D157200?v

[PATCH] D157200: [clang][Interp] Visit Logical-not operand as bool

2023-08-07 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM with a testing request. Comment at: clang/test/AST/Interp/c.c:12-13 _Static_assert( (5 > 4) + (3 > 2) == 2, ""); +_Static_assert(!!1.0, ""); +_Static_asse

[PATCH] D157200: [clang][Interp] Visit Logical-not operand as bool

2023-08-05 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder created this revision. tbaeder added reviewers: aaron.ballman, erichkeane, shafik, cor3ntin. Herald added a project: All. tbaeder requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The `invBool` op here expects a bool operand, but in C