summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-04-11 02:03:26 +0000
committerAnders Carlsson <andersca@mac.com>2011-04-11 02:03:26 +0000
commit575b374fdbfc2c2224fd3047ac11ffc4b8db9ae5 (patch)
tree18d07d74d7989eb83d46a9be809720278985b07c /lib/CodeGen/CGExprScalar.cpp
parent3ddcdd5d6c88902d24baa9e6bb240a3da88e68d4 (diff)
downloadclang-575b374fdbfc2c2224fd3047ac11ffc4b8db9ae5.tar.gz
clang-575b374fdbfc2c2224fd3047ac11ffc4b8db9ae5.tar.bz2
clang-575b374fdbfc2c2224fd3047ac11ffc4b8db9ae5.tar.xz
Remove CK_DynamicToNull.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 322b6e0c49..65aa46fff0 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -1053,8 +1053,7 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) {
CE->path_begin(), CE->path_end(),
ShouldNullCheckClassCastValue(CE));
}
- case CK_Dynamic:
- case CK_DynamicToNull: {
+ case CK_Dynamic: {
Value *V = Visit(const_cast<Expr*>(E));
const CXXDynamicCastExpr *DCE = cast<CXXDynamicCastExpr>(CE);
return CGF.EmitDynamicCast(V, DCE);