diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-06 23:21:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-06 23:21:58 +0000 |
commit | e14da79c7b1c336b72e6a4548f53b1a9534f7e0d (patch) | |
tree | 4c3202f7652b3b69d5ae2ac12d1444f6f859a8cf /lib/CodeGen/CGExprScalar.cpp | |
parent | 30775778897112f79b6641e98c2722d306053f0b (diff) |
reverse r158117.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index fa7b136831..e0265545be 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1970,9 +1970,6 @@ static Value *emitPointerArithmetic(CodeGenFunction &CGF, QualType elementType = pointerType->getPointeeType(); if (const VariableArrayType *vla = CGF.getContext().getAsVariableArrayType(elementType)) { - // arithmatic on VLA pointer - make sure to emit the VLA size. - CGF.EmitVariablyModifiedType(elementType); - // The element count here is the total number of non-VLA elements. llvm::Value *numElements = CGF.getVLASize(vla).first; |