diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2021-04-18 22:24:39 +0200 |
---|---|---|
committer | Matheus Izvekov <mizvekov@gmail.com> | 2021-07-28 03:09:31 +0200 |
commit | 4819b751bd875f458eb0060f7c586aa9ac41965c (patch) | |
tree | e3bf7af9c57667ae4ab9ce9d74b9932e5acb9f76 /clang/lib/Sema/Sema.cpp | |
parent | ce2a5fa72be3fd1d606505f98d3831706c28cfa8 (diff) | |
download | llvm-4819b751bd875f458eb0060f7c586aa9ac41965c.zip llvm-4819b751bd875f458eb0060f7c586aa9ac41965c.tar.gz llvm-4819b751bd875f458eb0060f7c586aa9ac41965c.tar.bz2 |
[clang] NFC: change uses of `Expr->getValueKind` into `is?Value`
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Reviewed By: rsmith
Differential Revision: https://reviews.llvm.org/D100733
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 054a652..5d3de06 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -632,7 +632,7 @@ ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, if (Kind == CK_ArrayToPointerDecay) { // C++1z [conv.array]: The temporary materialization conversion is applied. // We also use this to fuel C++ DR1213, which applies to C++11 onwards. - if (getLangOpts().CPlusPlus && E->getValueKind() == VK_PRValue) { + if (getLangOpts().CPlusPlus && E->isPRValue()) { // The temporary is an lvalue in C++98 and an xvalue otherwise. ExprResult Materialized = CreateMaterializeTemporaryExpr( E->getType(), E, !getLangOpts().CPlusPlus11); |