Skip to content

Commit

Permalink
[AST] Remove unneeded return false from UseExcessPrecision. NFC.
Browse files Browse the repository at this point in the history
Remove unneeded `return false` from UseExcessPrecision and move `break` inside.
  • Loading branch information
tclin914 committed Aug 30, 2023
1 parent 3521677 commit c1dda0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/AST/Type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,16 +1526,16 @@ bool QualType::UseExcessPrecision(const ASTContext &Ctx) {
Ctx.getLangOpts().getFloat16ExcessPrecision() !=
Ctx.getLangOpts().ExcessPrecisionKind::FPP_None)
return true;
return false;
} break;
break;
}
case BuiltinType::Kind::BFloat16: {
const TargetInfo &TI = Ctx.getTargetInfo();
if (TI.hasBFloat16Type() && !TI.hasFullBFloat16Type() &&
Ctx.getLangOpts().getBFloat16ExcessPrecision() !=
Ctx.getLangOpts().ExcessPrecisionKind::FPP_None)
return true;
return false;
} break;
break;
}
default:
return false;
}
Expand Down

0 comments on commit c1dda0f

Please sign in to comment.