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 | ff045dc0409d10ba8868e25e9f11156c55ca0967 (patch) | |
| tree | 4b1ce327502ea4c67cddad03fcb0df1417d153b5 /clang/lib/CodeGen | |
| parent | 67164852a7cc0923b857c84c515ad67969e81a67 (diff) | |
| download | bcm5719-llvm-ff045dc0409d10ba8868e25e9f11156c55ca0967.tar.gz bcm5719-llvm-ff045dc0409d10ba8868e25e9f11156c55ca0967.zip | |
reverse r158117.
llvm-svn: 158119
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index fa7b1368314..e0265545be3 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/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; |

