================
@@ -131,20 +135,57 @@ void Flang::addOtherOptions(const ArgList &Args, 
ArgStringList &CmdArgs) const {
                    options::OPT_finstrument_functions});
 
   llvm::codegenoptions::DebugInfoKind DebugInfoKind;
+  bool hasDwarfNArg = getDwarfNArg(Args) != nullptr;
----------------
tarunprabhu wrote:

Is it necessary to compare to `nullptr` here?

```suggestion
  bool hasDwarfNArg = getDwarfNArg(Args);
```

https://github.com/llvm/llvm-project/pull/160540
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to