summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-07-20 04:20:21 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-07-20 04:20:21 +0000
commitc57d34bc3566d0ed2dca22b3b74267a10dcef083 (patch)
treea09932c20e137d0b6c0158e587db3c278464dcf7 /clang/lib/CodeGen/CGExprScalar.cpp
parent08d047666a81bca31c39fb071c2c81cc93854a46 (diff)
downloadbcm5719-llvm-c57d34bc3566d0ed2dca22b3b74267a10dcef083.tar.gz
bcm5719-llvm-c57d34bc3566d0ed2dca22b3b74267a10dcef083.zip
Update ImplicitCastExpr to be able to represent an XValue.
llvm-svn: 108807
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index ef38209e1ea..d25f6e9acf6 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -897,8 +897,8 @@ static bool ShouldNullCheckClassCastValue(const CastExpr *CE) {
}
if (const ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(CE)) {
- // And that lvalue casts are never null.
- if (ICE->isLvalueCast())
+ // And that glvalue casts are never null.
+ if (ICE->getCategory() != ImplicitCastExpr::RValue)
return false;
}
OpenPOWER on IntegriCloud