summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/DynamicLinkerPEF.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-08 21:07:27 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-08 21:07:27 +0100
commite8420f8dc420210406a394685703c7a0333eb2f3 (patch)
treec53cd16d56faae5f9744ef0614bbcad0f570601b /dev/LibCompiler/src/DynamicLinkerPEF.cc
parent4017e6408c162b0ab1b54a0427d443b56df5237e (diff)
ADD: Better if conditions in DynamicLinkerPEF.cc
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/src/DynamicLinkerPEF.cc')
-rw-r--r--dev/LibCompiler/src/DynamicLinkerPEF.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc
index 084e94f..4a7bb49 100644
--- a/dev/LibCompiler/src/DynamicLinkerPEF.cc
+++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc
@@ -58,7 +58,7 @@ namespace Detail
{
struct DynamicLinkerBlob final
{
- std::vector<CharType> mBlob{}; // PEF code/bss/data blob.
+ std::vector<CharType> mBlob{}; // PEF code/bss/data blob.
UIntPtr mOffset{0UL}; // the offset of the PEF container header...
};
} // namespace Detail
@@ -218,9 +218,7 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF)
kStdOut << "no output filename set." << std::endl;
return LIBCOMPILER_EXEC_ERROR;
}
-
- // sanity check.
- if (kObjectList.empty())
+ else if (kObjectList.empty())
{
kStdOut << "no input files." << std::endl;
return LIBCOMPILER_EXEC_ERROR;