Skip to content

Commit

Permalink
Fix gcc -Wunused-variable warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Jan 19, 2020
1 parent badc7e6 commit 70b53a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Serialization/ASTReaderStmt.cpp
Expand Up @@ -732,7 +732,7 @@ readConstraintSatisfaction(ASTRecordReader &Record) {
unsigned NumDetailRecords = Record.readInt();
for (unsigned i = 0; i != NumDetailRecords; ++i) {
Expr *ConstraintExpr = Record.readExpr();
if (bool IsDiagnostic = Record.readInt()) {
if (/* IsDiagnostic */Record.readInt()) {
SourceLocation DiagLocation = Record.readSourceLocation();
std::string DiagMessage = Record.readString();
Satisfaction.Details.emplace_back(
Expand Down Expand Up @@ -822,7 +822,7 @@ void ASTStmtReader::VisitRequiresExpr(RequiresExpr *E) {
Req.emplace();
} else {
NoexceptLoc = Record.readSourceLocation();
switch (auto returnTypeRequirementKind = Record.readInt()) {
switch (/* returnTypeRequirementKind */Record.readInt()) {
case 0:
// No return type requirement.
Req.emplace();
Expand Down Expand Up @@ -853,7 +853,7 @@ void ASTStmtReader::VisitRequiresExpr(RequiresExpr *E) {
std::move(*Req));
} break;
case concepts::Requirement::RK_Nested: {
if (bool IsSubstitutionDiagnostic = Record.readInt()) {
if (/* IsSubstitutionDiagnostic */Record.readInt()) {
R = new (Record.getContext()) concepts::NestedRequirement(
readSubstitutionDiagnostic(Record));
break;
Expand Down

0 comments on commit 70b53a3

Please sign in to comment.