aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2021-04-18 22:24:39 +0200
committerMatheus Izvekov <mizvekov@gmail.com>2021-07-28 03:09:31 +0200
commit4819b751bd875f458eb0060f7c586aa9ac41965c (patch)
treee3bf7af9c57667ae4ab9ce9d74b9932e5acb9f76 /clang/lib/Sema/Sema.cpp
parentce2a5fa72be3fd1d606505f98d3831706c28cfa8 (diff)
downloadllvm-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.cpp2
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);