[llvm] [BOLT][NFC] Remove extraneous braces (PR #88620)
Nathan Sidwell via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 06:13:01 PDT 2024
https://github.com/urnathan created https://github.com/llvm/llvm-project/pull/88620
A small cleanup -- no braces needed here.
>From b4a46409586db28f4dc465715c244e6714da9cd4 Mon Sep 17 00:00:00 2001
From: Nathan Sidwell <nathan at acm.org>
Date: Sat, 13 Apr 2024 09:12:14 -0400
Subject: [PATCH] [BOLT][NFC] Remove extraneous braces
---
bolt/lib/Rewrite/RewriteInstance.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index f22bede002da58..1ed5576c31ea30 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -2859,15 +2859,14 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
BC->isRISCV())
ForceRelocation = true;
- if (IsFromCode) {
+ if (IsFromCode)
ContainingBF->addRelocation(Rel.getOffset(), ReferencedSymbol, RType,
Addend, ExtractedValue);
- } else if (IsToCode || ForceRelocation) {
+ else if (IsToCode || ForceRelocation)
BC->addRelocation(Rel.getOffset(), ReferencedSymbol, RType, Addend,
ExtractedValue);
- } else {
+ else
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: ignoring relocation from data to data\n");
- }
}
void RewriteInstance::selectFunctionsToProcess() {
More information about the llvm-commits
mailing list