diff options
Diffstat (limited to 'lld/Common/Args.cpp')
| -rw-r--r-- | lld/Common/Args.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/Common/Args.cpp b/lld/Common/Args.cpp index 854b50a1783..3f0671d72a6 100644 --- a/lld/Common/Args.cpp +++ b/lld/Common/Args.cpp @@ -41,7 +41,7 @@ std::vector<StringRef> lld::args::getStrings(opt::InputArgList &Args, int Id) { uint64_t lld::args::getZOptionValue(opt::InputArgList &Args, int Id, StringRef Key, uint64_t Default) { - for (auto *Arg : Args.filtered(Id)) { + for (auto *Arg : Args.filtered_reverse(Id)) { std::pair<StringRef, StringRef> KV = StringRef(Arg->getValue()).split('='); if (KV.first == Key) { uint64_t Result = Default; |

