[PATCH] D140059: [APSInt] Fix bug in APSInt mentioned in https://github.com/llvm/llvm-project/issues/59515

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 17 13:20:24 PST 2022


tschuett added inline comments.


================
Comment at: llvm/include/llvm/ADT/APSInt.h:104
+  std::optional<int64_t> tryExtValue() const {
+    return isRepresentableByInt64() ? std::optional<int64_t>(getExtValue())
+                                    : std::nullopt;
----------------
You don't need the constructor. `getExtValue()`should work.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140059



More information about the llvm-commits mailing list