[PATCH] D54692: [Driver] Use libOption with tablegen.

Leonard Mosescu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 28 16:09:44 PST 2018


lemo added a comment.

I noticed a small problem, this change breaks "lldb -c <corefile>". The inline comment explains the root cause.

Thanks



================
Comment at: lldb/trunk/tools/driver/Driver.cpp:310
+  if (args.hasArg(OPT_core)) {
+    SBFileSpec file(optarg);
+    if (file.Exists()) {
----------------
there's a small bug in here: optarg is the global definition, I assume the intention was to use the getValue() instead. as is, it breaks "lldb -c <corefile>"

it would be nice to get rid the global optarg as well since it masks these kind of mistakes.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54692/new/

https://reviews.llvm.org/D54692





More information about the llvm-commits mailing list