[PATCH] D149645: [clang][Interp] Optionally cast comparison result to non-bool
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 2 06:14:17 PDT 2023
erichkeane added a comment.
For C, should we instead be teaching our boolean operations to understand it might be int? I fear this will end up causing conversion problems later, such as with:
`int F = 1 > 2;`. We won't end up having a conversion operation there, since the RHS is already `int`, for the LHS.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149645/new/
https://reviews.llvm.org/D149645
More information about the cfe-commits
mailing list