diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-07 23:48:20 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-07 23:48:20 +0000 |
commit | 8fc489da2a0d2976efe9de5f712d903b0b92a2d8 (patch) | |
tree | df1e58b88129e2ddd0812d221daa12d746ae5c57 /clang/lib/CodeGen/CGExprScalar.cpp | |
parent | 97262e01d5a33469239cb7155d11c9ca833600ef (diff) | |
download | bcm5719-llvm-8fc489da2a0d2976efe9de5f712d903b0b92a2d8.tar.gz bcm5719-llvm-8fc489da2a0d2976efe9de5f712d903b0b92a2d8.zip |
Add a CK_ArrayToPointerDecay cast kind.
llvm-svn: 78434
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 0f8d38e6d27..3a9ec7ef6f9 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -595,6 +595,7 @@ Value *ScalarExprEmitter::VisitImplicitCastExpr(const ImplicitCastExpr *E) { // If this is due to array->pointer conversion, emit the array expression as // an l-value. if (Op->getType()->isArrayType()) { + assert(E->getCastKind() == CastExpr::CK_ArrayToPointerDecay); Value *V = EmitLValue(Op).getAddress(); // Bitfields can't be arrays. // Note that VLA pointers are always decayed, so we don't need to do |