[PATCH] D132739: [clang][Interp] Implement IntegralToBoolean casts
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 26 06:44:42 PDT 2022
erichkeane accepted this revision.
erichkeane added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/AST/Interp/Opcodes.td:433
+def ToCastTypeClass : TypeClass {
+ let Types = [Sint32, Bool];
}
----------------
Not sure how this works... but is this ONLY int-32 to bool and vice versa? The implementation of any of the other integrals should be trivial.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132739/new/
https://reviews.llvm.org/D132739
More information about the cfe-commits
mailing list