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 | 112a0a8ddf23f6d25e0920002d5d4c1df0515f86 (patch) | |
tree | 43ba399a0638094d21d8788698a949f6666a13cf /lib/CodeGen/CGExprScalar.cpp | |
parent | 4d8673b645ad86e496b886a0f80b60763f67071d (diff) |
Add a CK_ArrayToPointerDecay cast kind.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 0f8d38e6d2..3a9ec7ef6f 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/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 |