[PATCH] D157074: [clang][ExprConst] Add RHS source range to div by zero diags
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 4 12:14:11 PDT 2023
aaron.ballman added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:2811-2813
+static bool handleIntIntBinOp(EvalInfo &Info, const BinaryOperator *E,
+ const APSInt &LHS, BinaryOperatorKind Opcode,
+ APSInt RHS, APSInt &Result) {
----------------
I think we should remove that parameter because it'd be pretty weird to pass in a binary operator and a different binary operator kind than the one used by the binary operator, right?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157074/new/
https://reviews.llvm.org/D157074
More information about the cfe-commits
mailing list