Just emit p != nullptr for this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D148981
[clang][Interp] PointerToBoolean casts ClosedPublic Authored by tbaeder on Apr 21 2023, 9:42 PM.
Details Summary Just emit p != nullptr for this.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 24 2023, 3:08 PM Closed by commit rG7766648c3aff: [clang][Interp] PointerToBoolean casts (authored by tbaeder). · Explain WhyApr 24 2023, 11:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 516631 clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/literals.cpp
|