diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-10 10:34:54 -0600 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-10 14:03:29 -0600 |
commit | 29041bc0507f2b04d116ee3150bfd61ea01c5565 (patch) | |
tree | fe9f0e81beecb83ad578c1ab237a3377a128fb48 /llvm/lib/Support/APInt.cpp | |
parent | f5deb6bf3901ff34be845e44c9ae678cbc2e3cdf (diff) | |
download | llvm-29041bc0507f2b04d116ee3150bfd61ea01c5565.zip llvm-29041bc0507f2b04d116ee3150bfd61ea01c5565.tar.gz llvm-29041bc0507f2b04d116ee3150bfd61ea01c5565.tar.bz2 |
[APInt] Convert GetMostSignificantDifferentBit to std::optional
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index b19de75..db55fd02 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -2961,7 +2961,7 @@ llvm::APIntOps::SolveQuadraticEquationWrap(APInt A, APInt B, APInt C, return X; } -Optional<unsigned> +std::optional<unsigned> llvm::APIntOps::GetMostSignificantDifferentBit(const APInt &A, const APInt &B) { assert(A.getBitWidth() == B.getBitWidth() && "Must have the same bitwidth"); if (A == B) |