summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-29 19:14:13 +0000
committerMike Stump <mrs@apple.com>2009-05-29 19:14:13 +0000
commita678874975003e8ddc5fc5fdecbfd80956ef257c (patch)
tree86d927fc86eb6dd3b8771953682b69a15110740f /clang/lib/CodeGen/CodeGenFunction.cpp
parent20da71e3b6e87bca30a175ac0b51168fd56baf19 (diff)
downloadbcm5719-llvm-a678874975003e8ddc5fc5fdecbfd80956ef257c.tar.gz
bcm5719-llvm-a678874975003e8ddc5fc5fdecbfd80956ef257c.zip
Oops, the testcase I was thinking of is supposed to error out. I
tried other things that might trip, but they all worked. llvm-svn: 72584
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 38a981ccff1..04661fca471 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -487,8 +487,6 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty)
}
return SizeEntry;
- } else if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) {
- EmitVLASize(CAT->getElementType());
} else if (const PointerType *PT = Ty->getAsPointerType())
EmitVLASize(PT->getPointeeType());
else {
OpenPOWER on IntegriCloud