diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-10 16:29:40 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-10 16:29:40 +0000 |
commit | 924a8f3573a64797a7080061a586e3b4de8a41ae (patch) | |
tree | 33e351a46eeb5b90a1a0917b98003029c1fe5e58 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d672b5c32f3d79524c9e0b4e5b55a6fd6bc5581a (diff) | |
download | bcm5719-llvm-924a8f3573a64797a7080061a586e3b4de8a41ae.tar.gz bcm5719-llvm-924a8f3573a64797a7080061a586e3b4de8a41ae.zip |
Added ParenType type node.
llvm-svn: 121488
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index efeca2d538a..7bd0c3da9ea 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -656,6 +656,11 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty) { return 0; } + if (const ParenType *PT = dyn_cast<ParenType>(Ty)) { + EmitVLASize(PT->getInnerType()); + return 0; + } + const PointerType *PT = Ty->getAs<PointerType>(); assert(PT && "unknown VM type!"); EmitVLASize(PT->getPointeeType()); |