[PATCH] D134749: [clang][Interp] Implement Div opcode

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 22:07:13 PDT 2022


shafik added inline comments.


================
Comment at: clang/lib/AST/Interp/Interp.h:183
+
+  if (RHS.isZero()) {
+    const SourceInfo &Loc = S.Current->getSource(OpPC);
----------------
Just like rem we need to catch `INT_MIN / -1`

`CheckICE(...)` looks like it does checking for both in the same spot.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134749/new/

https://reviews.llvm.org/D134749



More information about the cfe-commits mailing list