[PATCH] D157432: [clang][ConstExprEmitter] handle Unary Not on integers

2023-08-08 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1402 +return nullptr; + } + A lot of these visitor methods for UnaryOperator are going to look almost the same; I think I might prefer to have a `VisitUnaryOperator`

[PATCH] D157432: [clang][ConstExprEmitter] handle Unary Not on integers

2023-08-08 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers created this revision. Herald added a project: All. nickdesaulniers requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Consider the following statement: int x = ~0; With the following AST: `-VarDecl 0x5647bdb12d60