[PATCH] D105115: [ConstantRanges] Use APInt for constant case for urem/srem.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 29 09:22:06 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/IR/ConstantRange.cpp:1224
 
+  if (RHS.isSingleElement()) {
+    const APInt &RHSInt = *RHS.getSingleElement();
----------------
This should be `if (const APInt *RHSInt = RHS.getSingleElement())`. Same for the other isSingleElement + getSingleElement combinations.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105115



More information about the llvm-commits mailing list