diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-24 20:59:53 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-24 20:59:53 +0000 |
commit | 08fa2af5f60cdcb65b554ce2afe39016475cade4 (patch) | |
tree | b2908d3fbcd8c9983f02d0ae01502e55c5ae2b46 | |
parent | ecce1314380e740bbe303cc68bf8f6b57480b09a (diff) |
Type::getDesugaredType needs to handle decltype types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74115 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/Type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 9894adf8d0..4dfe35ea41 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -112,6 +112,8 @@ QualType Type::getDesugaredType(bool ForDisplay) const { return TOE->getUnderlyingExpr()->getType().getDesugaredType(); if (const TypeOfType *TOT = dyn_cast<TypeOfType>(this)) return TOT->getUnderlyingType().getDesugaredType(); + if (const DecltypeType *DTT = dyn_cast<DecltypeType>(this)) + return DTT->getUnderlyingExpr()->getType().getDesugaredType(); if (const TemplateSpecializationType *Spec = dyn_cast<TemplateSpecializationType>(this)) { if (ForDisplay) |