diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2010-08-22 01:00:03 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2010-08-22 01:00:03 +0000 |
| commit | 04831926eca9fad5fb56118d7a74002cd6ff84a2 (patch) | |
| tree | 6bc00c2d01f7647fff5dcc8c9cdda852275c28fa /clang/lib/Sema/SemaExpr.cpp | |
| parent | 94b2dd0998230c758abd92c99d3700c971f7a31a (diff) | |
| download | bcm5719-llvm-04831926eca9fad5fb56118d7a74002cd6ff84a2.tar.gz bcm5719-llvm-04831926eca9fad5fb56118d7a74002cd6ff84a2.zip | |
Detabify.
llvm-svn: 111768
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index b192b1029e3..2012f7f2fd8 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -896,7 +896,7 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, CallsUndergoingInstantiation.back()->getCallee()); CXXMethodDecl *DepMethod = cast_or_null<CXXMethodDecl>( CurMethod->getInstantiatedFromMemberFunction()); - if (DepMethod) { + if (DepMethod) { Diag(R.getNameLoc(), diagnostic) << Name << FixItHint::CreateInsertion(R.getNameLoc(), "this->"); QualType DepThisType = DepMethod->getThisType(Context); @@ -911,11 +911,11 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, ULE->getQualifier(), ULE->getQualifierRange(), NULL, R.getLookupNameInfo(), &TList); CallsUndergoingInstantiation.back()->setCallee(DepExpr); - } else { + } else { // FIXME: we should be able to handle this case too. It is correct // to add this-> here. This is a workaround for PR7947. Diag(R.getNameLoc(), diagnostic) << Name; - } + } } else { Diag(R.getNameLoc(), diagnostic) << Name; } |

