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

This commit is contained in:
Momchil Velikov 2024-07-09 10:41:45 +01:00 committed by GitHub
parent ae5aebd48d
commit 313b6c9a5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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