[PATCH] D131942: [clang][Inter[ Implement bool and nullptr literal expressions

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 15 23:36:34 PDT 2022


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, shafik, nand, nandor, rsmith.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is split out from https://reviews.llvm.org/D131888

As a start, implement handling of boolean and nullptr expressions. The patch includes a bug fix to `readArg()` advance the code pointer and a few other small changes I did while looking at the code. I can pull those out as well but I don't want to open too many review tickets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131942

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/lib/AST/Interp/Disasm.cpp
  clang/lib/AST/Interp/Function.cpp
  clang/lib/AST/Interp/Function.h
  clang/lib/AST/Interp/Interp.cpp
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Source.h
  clang/test/AST/Interp/literals.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131942.452902.patch
Type: text/x-patch
Size: 6608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220816/f443311e/attachment.bin>


More information about the cfe-commits mailing list