[lld] 313b6c9 - [LLD] Fix preprocessor condition when getting lld version (#98137)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 02:41:50 PDT 2024


Author: Momchil Velikov
Date: 2024-07-09T10:41:45+01:00
New Revision: 313b6c9a5e8c2b8686ea43a42806822fa5c07ef8

URL: https://github.com/llvm/llvm-project/commit/313b6c9a5e8c2b8686ea43a42806822fa5c07ef8
DIFF: https://github.com/llvm/llvm-project/commit/313b6c9a5e8c2b8686ea43a42806822fa5c07ef8.diff

LOG: [LLD] Fix preprocessor condition when getting lld version (#98137)

Added: 
    

Modified: 
    lld/Common/Version.cpp

Removed: 
    


################################################################################
diff  --git a/lld/Common/Version.cpp b/lld/Common/Version.cpp
index 78f7c6b69b505..59183c79f7a3c 100644
--- a/lld/Common/Version.cpp
+++ b/lld/Common/Version.cpp
@@ -23,7 +23,7 @@ std::string lld::getLLDVersion() {
 #else
 #define LLD_VENDOR_DISPLAY
 #endif
-#if defined(LLVM_REPOSITORY) || defined(LLVM_REVISION)
+#if defined(LLVM_REPOSITORY) && defined(LLVM_REVISION)
   return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLVM_REPOSITORY
                             " " LLVM_REVISION ")";
 #else


        


More information about the llvm-commits mailing list