[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:
parent
d57a87ea89
commit
b7c1ccd422
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue