[llvm-branch-commits] [llvm] COFF: Start error message with lowercase letter (PR #208636)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jul 10 00:13:39 PDT 2026
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/208636
Follow style guideline for error messages.
>From d04c2e55a72f53da169a93bc810407cadd2462b7 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Fri, 10 Jul 2026 00:22:07 +0200
Subject: [PATCH] COFF: Start error message with lowercase letter
Follow style guideline for error messages.
---
llvm/lib/Object/COFFObjectFile.cpp | 2 +-
llvm/test/Object/coff-invalid.test | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 0231206ea1e79..08458f8345209 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -396,7 +396,7 @@ relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
const coff_section *Sec = toSec(Ref);
const coff_relocation *begin = getFirstReloc(Sec, Data, base());
if (begin && Sec->VirtualAddress != 0)
- report_fatal_error("Sections with relocations should have an address of 0");
+ report_fatal_error("sections with relocations should have an address of 0");
DataRefImpl Ret;
Ret.p = reinterpret_cast<uintptr_t>(begin);
return relocation_iterator(RelocationRef(Ret, this));
diff --git a/llvm/test/Object/coff-invalid.test b/llvm/test/Object/coff-invalid.test
index da5d687c6e208..d7b0f348b3028 100644
--- a/llvm/test/Object/coff-invalid.test
+++ b/llvm/test/Object/coff-invalid.test
@@ -10,4 +10,4 @@ SECTIONS-NEXT: VirtualAddress: 0x1000000
RUN: not --crash llvm-readobj -r %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
RUN: FileCheck %s
-CHECK: Sections with relocations should have an address of 0
+CHECK: sections with relocations should have an address of 0
More information about the llvm-branch-commits
mailing list