r182749 - use getLVForDecl for consistency.
Rafael Espindola
rafael.espindola at gmail.com
Mon May 27 19:13:28 PDT 2013
Author: rafael
Date: Mon May 27 21:13:28 2013
New Revision: 182749
URL: http://llvm.org/viewvc/llvm-project?rev=182749&view=rev
Log:
use getLVForDecl for consistency.
No intended functionality change.
Modified:
cfe/trunk/lib/AST/Decl.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=182749&r1=182748&r2=182749&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Mon May 27 21:13:28 2013
@@ -1069,7 +1069,7 @@ static LinkageInfo getLVForLocalDecl(con
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(),
More information about the cfe-commits
mailing list