aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDecl.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/CodeGen/CGDecl.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/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index de9f3f6..5b3d39f 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -714,10 +714,10 @@ static bool tryEmitARCCopyWeakInit(CodeGenFunction &CGF,
}
// If it was an l-value, use objc_copyWeak.
- if (srcExpr->getValueKind() == VK_LValue) {
+ if (srcExpr->isLValue()) {
CGF.EmitARCCopyWeak(destLV.getAddress(CGF), srcAddr);
} else {
- assert(srcExpr->getValueKind() == VK_XValue);
+ assert(srcExpr->isXValue());
CGF.EmitARCMoveWeak(destLV.getAddress(CGF), srcAddr);
}
return true;