From: Rafael Espindola Date: Tue, 28 May 2013 02:13:28 +0000 (+0000) Subject: use getLVForDecl for consistency. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24639c421a36acaa5d0924664c52b9bf2b1c8b91;p=clang use getLVForDecl for consistency. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182749 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 4f98ff34b4..57eda43a95 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1069,7 +1069,7 @@ static LinkageInfo getLVForLocalDecl(const NamedDecl *D, const FunctionDecl *FD = getOutermostFunctionContext(D); if (!FD || !FD->isInlined()) return LinkageInfo::none(); - LinkageInfo LV = FD->getLinkageAndVisibility(); + LinkageInfo LV = getLVForDecl(FD, computation); if (!isExternallyVisible(LV.getLinkage())) return LinkageInfo::none(); return LinkageInfo(VisibleNoLinkage, LV.getVisibility(),