From 7e7eb3da052a6d80ddf2377cab0384c798f73f75 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 6 Jul 2009 15:59:29 +0000 Subject: Keep track of the Expr used to describe the size of an array type, from Enea Zaffanella! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74831 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/CodeGen/CGDebugInfo.cpp') diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 2bf8a222a2..cf8e19af32 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -780,6 +780,8 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty, return Slot = CreateType(cast(Ty), Unit); case Type::ConstantArray: + case Type::ConstantArrayWithExpr: + case Type::ConstantArrayWithoutExpr: case Type::VariableArray: case Type::IncompleteArray: return Slot = CreateType(cast(Ty), Unit); -- cgit v1.2.3-18-g5258