================
@@ -492,6 +492,12 @@ ToolChain::getMultilibFlags(const llvm::opt::ArgList 
&Args) const {
 
   processMultilibCustomFlags(Result, Args);
 
+  if (Arg *CStdLibArg = Args.getLastArg(options::OPT_cstdlib_EQ)) {
+    Result.push_back(std::string(CStdLibArg->getOption().getPrefixedName()) +
+                     CStdLibArg->getValue());
+    CStdLibArg->claim();
----------------
lenary wrote:

You don't need to explicitly claim something fetched with `getLastArg`
```suggestion
```

https://github.com/llvm/llvm-project/pull/203884
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to