From ce1c7ec76a0a8df308066daf994e732b8ceaab37 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 19 Oct 2018 10:00:15 -0700 Subject: [PATCH] Improve DeducedType --- src/indexer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/indexer.cc b/src/indexer.cc index 125bb95c..30f103f7 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -565,9 +565,7 @@ public: T = BD->getType(); binding = true; } - auto BT = GetBaseType(T, false); - if (!BT.isNull() && - (binding || BT.getUnqualifiedType()->getAs())) { + if (!T.isNull() && (binding || T->getContainedDeducedType())) { SmallString<256> Str; llvm::raw_svector_ostream OS(Str); PrintingPolicy PP = GetDefaultPolicy();