summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-02 15:46:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-02 15:46:52 +0000
commitf7ced25a2aba4524332dd1ce858163ece579591b (patch)
tree277db0f9e54f4e0bf6e97130c66f7d7e2f70f8e3
parenta85c1469c795df27ef2f883dde84f530de560582 (diff)
downloadbcm5719-llvm-f7ced25a2aba4524332dd1ce858163ece579591b.tar.gz
bcm5719-llvm-f7ced25a2aba4524332dd1ce858163ece579591b.zip
Fix unintentional method call due to false -> pointer conversion; patch by Dimitry Andric!
llvm-svn: 105327
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index f745352d998..d4d4d1ea399 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud