From e8420f8dc420210406a394685703c7a0333eb2f3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 8 Mar 2025 21:07:27 +0100 Subject: ADD: Better if conditions in DynamicLinkerPEF.cc Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/src/DynamicLinkerPEF.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dev/LibCompiler/src/DynamicLinkerPEF.cc') 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 mBlob{}; // PEF code/bss/data blob. + std::vector 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; -- cgit v1.2.3