diff options
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index fa1c9152f4..d5dd776b7d 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -125,7 +125,7 @@ QualType Type::getDesugaredType(bool ForDisplay) const { 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(); + return DTT->getCanonicalTypeInternal(); if (const TemplateSpecializationType *Spec = dyn_cast<TemplateSpecializationType>(this)) { if (ForDisplay) |