Skip to content

Commit 3d328b6

Browse files
author
xgupta
committed
resolve review comment
1 parent 6b6bb70 commit 3d328b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class HTMLLogger : public Logger {
430430
AST.getSourceManager(), AST.getLangOpts());
431431
if (EltRange.isInvalid())
432432
continue;
433-
if (EltRange.getEnd() <= Range.getBegin() ||
433+
if (EltRange.getEnd() < Range.getBegin() ||
434434
EltRange.getBegin() >= Range.getEnd())
435435
continue;
436436

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4239,7 +4239,7 @@ bool Sema::DiagRedefinedPlaceholderFieldDecl(SourceLocation Loc,
42394239
Diag(Loc, diag::err_using_placeholder_variable) << Name;
42404240
for (DeclContextLookupResult::iterator It = Found; It != Result.end(); It++) {
42414241
const NamedDecl *ND = *It;
4242-
if (ND->getDeclContext() != ClassDecl->getDeclContext())
4242+
if (ND->getDeclContext() != ND->getDeclContext())
42434243
break;
42444244
if (isa<FieldDecl, IndirectFieldDecl>(ND) &&
42454245
ND->isPlaceholderVar(getLangOpts()))

0 commit comments

Comments
 (0)