diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-02 15:46:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-02 15:46:52 +0000 |
commit | dc32cdf2a92de17901496d064db83786d552137f (patch) | |
tree | c6a1af231ef45ce2f55f626f4aeabfb5c98566da /lib | |
parent | abd6b09e3daa4d82b7e8ee6966d7f745fd121835 (diff) |
Fix unintentional method call due to false -> pointer conversion; patch by Dimitry Andric!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index f745352d99..d4d4d1ea39 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -941,7 +941,7 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, // We didn't find anything, so try to correct for a typo. DeclarationName Corrected; - if (S && (Corrected = CorrectTypo(R, S, &SS, false, CTC))) { + if (S && (Corrected = CorrectTypo(R, S, &SS, 0, false, CTC))) { if (!R.empty()) { if (isa<ValueDecl>(*R.begin()) || isa<FunctionTemplateDecl>(*R.begin())) { if (SS.isEmpty()) |