diff options
| author | Kazu Hirata <kazu@google.com> | 2022-06-20 20:05:16 -0700 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-06-20 20:05:16 -0700 |
| commit | 064a08cd955019da9130f1109bfa534e79b8ec7c (patch) | |
| tree | e097a750d667d8ea431e374106ffbf075c8e3c90 /clang/lib/CodeGen/CGExprScalar.cpp | |
| parent | b89f483064716be015d74e6ed3e0b09f9d925c30 (diff) | |
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 6b5b715fd8f9..98d8e8b4ad88 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -168,7 +168,7 @@ static llvm::Optional<QualType> getUnwidenedIntegerType(const ASTContext &Ctx, /// Check if \p E is a widened promoted integer. static bool IsWidenedIntegerOp(const ASTContext &Ctx, const Expr *E) { - return getUnwidenedIntegerType(Ctx, E).hasValue(); + return getUnwidenedIntegerType(Ctx, E).has_value(); } /// Check if we can skip the overflow check for \p Op. |
