Be more specific about auto * vs auto for po alias.
authorEric Christopher <echristo@gmail.com>
Tue, 26 May 2020 18:58:31 +0000 (11:58 -0700)
committerEric Christopher <echristo@gmail.com>
Tue, 26 May 2020 18:59:09 +0000 (11:59 -0700)
lldb/source/Interpreter/CommandInterpreter.cpp

index 1cd71b0..61288fc 100644 (file)
@@ -356,7 +356,7 @@ void CommandInterpreter::Initialize() {
     AddAlias("p", cmd_obj_sp, "--")->SetHelpLong("");
     AddAlias("print", cmd_obj_sp, "--")->SetHelpLong("");
     AddAlias("call", cmd_obj_sp, "--")->SetHelpLong("");
-    if (auto po = AddAlias("po", cmd_obj_sp, "-O --")) {
+    if (auto *po = AddAlias("po", cmd_obj_sp, "-O --")) {
       po->SetHelp("Evaluate an expression on the current thread.  Displays any "
                   "returned value with formatting "
                   "controlled by the type's author.");