Skip to content

Commit 77a3e49

Browse files
committed
clang-format
1 parent ee51ed7 commit 77a3e49

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10301030
PB.registerScalarOptimizerLateEPCallback(
10311031
[this](FunctionPassManager &FPM, OptimizationLevel Level) {
10321032
BoundsCheckingPass::ReportingMode Mode;
1033-
bool Merge = CodeGenOpts.SanitizeMergeHandlers.has(SanitizerKind::LocalBounds);
1033+
bool Merge = CodeGenOpts.SanitizeMergeHandlers.has(
1034+
SanitizerKind::LocalBounds);
10341035

10351036
if (CodeGenOpts.SanitizeTrap.has(SanitizerKind::LocalBounds)) {
10361037
Mode = BoundsCheckingPass::ReportingMode::Trap;

llvm/include/llvm/Transforms/Instrumentation/BoundsChecking.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class BoundsCheckingPass : public PassInfoMixin<BoundsCheckingPass> {
4040
void printPipeline(raw_ostream &OS,
4141
function_ref<StringRef(StringRef)> MapClassName2PassName);
4242

43-
private:
44-
BoundsCheckingOptions Options;
43+
private:
44+
BoundsCheckingOptions Options;
4545
};
4646

4747
} // end namespace llvm

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,8 @@ parseRegAllocFastPassOptions(PassBuilder &PB, StringRef Params) {
12831283

12841284
Expected<BoundsCheckingPass::BoundsCheckingOptions>
12851285
parseBoundsCheckingOptions(StringRef Params) {
1286-
BoundsCheckingPass::BoundsCheckingOptions Options (BoundsCheckingPass::ReportingMode::Trap, true);
1286+
BoundsCheckingPass::BoundsCheckingOptions Options(
1287+
BoundsCheckingPass::ReportingMode::Trap, true);
12871288
while (!Params.empty()) {
12881289
StringRef ParamName;
12891290
std::tie(ParamName, Params) = Params.split(';');

llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ STATISTIC(ChecksUnable, "Bounds checks unable to add");
4343

4444
using BuilderTy = IRBuilder<TargetFolder>;
4545

46-
BoundsCheckingPass::BoundsCheckingOptions::BoundsCheckingOptions(ReportingMode Mode, bool Merge)
46+
BoundsCheckingPass::BoundsCheckingOptions::BoundsCheckingOptions(
47+
ReportingMode Mode, bool Merge)
4748
: Mode(Mode), Merge(Merge) {}
4849

4950
/// Gets the conditions under which memory accessing instructions will overflow.
@@ -291,7 +292,8 @@ PreservedAnalyses BoundsCheckingPass::run(Function &F, FunctionAnalysisManager &
291292
auto &TLI = AM.getResult<TargetLibraryAnalysis>(F);
292293
auto &SE = AM.getResult<ScalarEvolutionAnalysis>(F);
293294

294-
if (!addBoundsChecking(F, TLI, SE, ReportingOpts(Options.Mode, Options.Merge)))
295+
if (!addBoundsChecking(F, TLI, SE,
296+
ReportingOpts(Options.Mode, Options.Merge)))
295297
return PreservedAnalyses::all();
296298

297299
return PreservedAnalyses::none();

0 commit comments

Comments
 (0)