From 5baba9d98364a3525d6afa15a04cdad82fd6dd30 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 25 Aug 2010 10:28:54 +0000 Subject: More incremental progress towards not including Expr.h in Sema.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112044 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExprScalar.cpp') diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 6901f9b924..ec491f7240 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -893,7 +893,7 @@ static bool ShouldNullCheckClassCastValue(const CastExpr *CE) { if (const ImplicitCastExpr *ICE = dyn_cast(CE)) { // And that glvalue casts are never null. - if (ICE->getCategory() != ImplicitCastExpr::RValue) + if (ICE->getValueKind() != VK_RValue) return false; } -- cgit v1.2.3