mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
[Driver] Simplify string comparisons (NFC) (#137756)
This commit is contained in:
@@ -159,7 +159,7 @@ void Flang::addCodegenOptions(const ArgList &Args,
|
||||
|
||||
for (const auto &arg :
|
||||
Args.getAllArgValues(options::OPT_frepack_arrays_contiguity_EQ))
|
||||
if (arg.compare("whole") != 0 && arg.compare("innermost") != 0) {
|
||||
if (arg != "whole" && arg != "innermost") {
|
||||
getToolChain().getDriver().Diag(diag::err_drv_unsupported_option_argument)
|
||||
<< "-frepack-arrays-contiguity=" << arg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user