Skip to content

Commit 313b6c9

Browse files
[LLD] Fix preprocessor condition when getting lld version (#98137)
1 parent ae5aebd commit 313b6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/Common/Version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ std::string lld::getLLDVersion() {
2323
#else
2424
#define LLD_VENDOR_DISPLAY
2525
#endif
26-
#if defined(LLVM_REPOSITORY) || defined(LLVM_REVISION)
26+
#if defined(LLVM_REPOSITORY) && defined(LLVM_REVISION)
2727
return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLVM_REPOSITORY
2828
" " LLVM_REVISION ")";
2929
#else

0 commit comments

Comments
 (0)