[clang] c1dda0f - [AST] Remove unneeded `return false` from UseExcessPrecision. NFC.
Jim Lin via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 30 01:08:05 PDT 2023
Author: Jim Lin
Date: 2023-08-30T16:05:55+08:00
New Revision: c1dda0f7934d28eb8dfc92206c49b188a1a091de
URL: https://github.com/llvm/llvm-project/commit/c1dda0f7934d28eb8dfc92206c49b188a1a091de
DIFF: https://github.com/llvm/llvm-project/commit/c1dda0f7934d28eb8dfc92206c49b188a1a091de.diff
LOG: [AST] Remove unneeded `return false` from UseExcessPrecision. NFC.
Remove unneeded `return false` from UseExcessPrecision and move `break` inside.
Added:
Modified:
clang/lib/AST/Type.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 8173e082048207..c08ebfb7f142b3 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -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;
}
More information about the cfe-commits
mailing list