llvm.org GIT mirror llvm / 0895359
[gn] Tag unneeded variable. When only building targets without assembly parsers (e.g. `llvm_targets_to_build = ["NVPTX"]`), `all_targets` is empty and causes GN to warn about an assigned-but-unused variable. Differential Revision: https://reviews.llvm.org/D31727 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365897 91177308-0d34-0410-b5e6-96231b3b80d8 Bryant Wong a month ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
382382 foreach(target, all_targets) {
383383 value = "$value${invoker.value}($target)\n"
384384 }
385 if (all_targets == []) {
386 not_needed(invoker, [ "value" ])
387 }
385388 values = [ "${invoker.key}=$value" ]
386389 }
387390 }