[PATCH] D157174: [clang][Interp] Convert logical binop operands to bool

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 22:59:08 PDT 2023


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.

Move the logic for this into `visitBool`, where it belongs.  Then convert the logical binary operator operands to bool using `visitBool()` and the result back to int, if needed (which it is in C).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157174

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157174.547448.patch
Type: text/x-patch
Size: 3656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230805/5ac8bce1/attachment.bin>


More information about the cfe-commits mailing list