From a56b6fb228be8df5c7be5bf1102ff7f8deb267fc 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 e2c5321f..de83bdc2 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -550,9 +550,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();