diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-07 19:34:42 -0600 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-08 08:35:11 -0600 |
commit | ea6ed399b29c25fb685af16eb7f722fd1649b37a (patch) | |
tree | 0068421fa8132fbcd005923e342534094e31ea2b /llvm/lib/Support/APInt.cpp | |
parent | 489d22f18c7865800abbda6720343b8b67d9fc54 (diff) | |
download | llvm-ea6ed399b29c25fb685af16eb7f722fd1649b37a.zip llvm-ea6ed399b29c25fb685af16eb7f722fd1649b37a.tar.gz llvm-ea6ed399b29c25fb685af16eb7f722fd1649b37a.tar.bz2 |
[SCEV] Convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index ba2b2c1..b19de75 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -25,6 +25,7 @@ #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include <cmath> +#include <optional> using namespace llvm; @@ -2770,7 +2771,7 @@ APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B, llvm_unreachable("Unknown APInt::Rounding enum"); } -Optional<APInt> +std::optional<APInt> llvm::APIntOps::SolveQuadraticEquationWrap(APInt A, APInt B, APInt C, unsigned RangeWidth) { unsigned CoeffWidth = A.getBitWidth(); |