[llvm-jitlink] Fix a broken warning.

This warning should only be issued if -slab-page-size has not been used.
This commit is contained in:
Lang Hames 2021-10-11 20:53:15 -07:00
parent d57a87ea89
commit b7c1ccd422
1 changed files with 2 additions and 1 deletions

View File

@ -1121,7 +1121,8 @@ static Error sanitizeArguments(const Triple &TT, const char *ArgV0) {
"-slab-address requires -slab-allocate and -noexec",
inconvertibleErrorCode());
errs() << "Warning: -slab-address used without -slab-page-size.\n";
if (SlabPageSize == 0)
errs() << "Warning: -slab-address used without -slab-page-size.\n";
}
if (SlabPageSize != 0) {