[Lldb-commits] [lldb] r334501 - Fix build error introduced in r334498
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 12 06:26:43 PDT 2018
Author: labath
Date: Tue Jun 12 06:26:43 2018
New Revision: 334501
URL: http://llvm.org/viewvc/llvm-project?rev=334501&view=rev
Log:
Fix build error introduced in r334498
Some gcc versions (circa 4.9) do not accept initializing Expected
objects containing a reference to a function from a function.
Change the Expected object to contain function pointers to work around
this.
Modified:
lldb/trunk/tools/lldb-test/lldb-test.cpp
Modified: lldb/trunk/tools/lldb-test/lldb-test.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-test/lldb-test.cpp?rev=334501&r1=334500&r2=334501&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-test/lldb-test.cpp (original)
+++ lldb/trunk/tools/lldb-test/lldb-test.cpp Tue Jun 12 06:26:43 2018
@@ -161,7 +161,7 @@ static Error findVariables(lldb_private:
static Error dumpModule(lldb_private::Module &Module);
static Error verify(lldb_private::Module &Module);
-static Expected<Error (&)(lldb_private::Module &)> getAction();
+static Expected<Error (*)(lldb_private::Module &)> getAction();
static int dumpSymbols(Debugger &Dbg);
}
@@ -494,7 +494,7 @@ Error opts::symbols::verify(lldb_private
return Error::success();
}
-Expected<Error (&)(lldb_private::Module &)> opts::symbols::getAction() {
+Expected<Error (*)(lldb_private::Module &)> opts::symbols::getAction() {
if (Verify) {
if (Find != FindType::None)
return make_string_error(
More information about the lldb-commits
mailing list