Improve DeducedType

This commit is contained in:
Fangrui Song 2018-10-19 10:00:15 -07:00
parent 18b47d3f5c
commit a56b6fb228

View File

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