[PATCH] D157596: [clang][Interp] Handle mixed floating/integral compound assign operators

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 10 03:03:19 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 subscribers: cfe-commits, wangpc.
Herald added a project: clang.

Add a new `emitPrimCast` helper function and use that when evaluating floating compound operators.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157596

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/test/AST/Interp/floats.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157596.548945.patch
Type: text/x-patch
Size: 5787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230810/3de9e338/attachment.bin>


More information about the cfe-commits mailing list