diff options
author | Nicolai Hähnle <[email protected]> | 2019-04-04 11:49:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-12 20:28:23 -0400 |
commit | 1ff2440eee8464c05a9d1df564518a874928a077 (patch) | |
tree | 8015c3252f0e4d877d6ef7dc64e238e2afa1746d /src | |
parent | ca21ba2a08a654b41d0e10712b0f9fc946564007 (diff) |
amd/common: use ARRAY_SIZE for the LLVM command line options
This is more convenient for changing it around during debug.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_llvm_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index c8a8bf146fe..7ee9a490da0 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -59,8 +59,8 @@ static void ac_init_llvm_target() * This option tells the backend to fall-back to SelectionDAG and print * a diagnostic message if global isel fails. */ - const char *argv[3] = { "mesa", "-simplifycfg-sink-common=false", "-global-isel-abort=2" }; - LLVMParseCommandLineOptions(3, argv, NULL); + const char *argv[] = { "mesa", "-simplifycfg-sink-common=false", "-global-isel-abort=2" }; + LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL); } static once_flag ac_init_llvm_target_once_flag = ONCE_FLAG_INIT; |