Improve DeducedType

This commit is contained in:
Fangrui Song 2018-10-19 10:00:15 -07:00
parent 119a05597d
commit ce1c7ec76a

View File

@ -565,9 +565,7 @@ public:
T = BD->getType(); T = BD->getType();
binding = true; binding = true;
} }
auto BT = GetBaseType(T, false); if (!T.isNull() && (binding || T->getContainedDeducedType())) {
if (!BT.isNull() &&
(binding || BT.getUnqualifiedType()->getAs<AutoType>())) {
SmallString<256> Str; SmallString<256> Str;
llvm::raw_svector_ostream OS(Str); llvm::raw_svector_ostream OS(Str);
PrintingPolicy PP = GetDefaultPolicy(); PrintingPolicy PP = GetDefaultPolicy();