diff options
| -rw-r--r-- | lldb/test/api/multithreaded/common.h | 1 | ||||
| -rw-r--r-- | lldb/test/api/multithreaded/test_breakpoint_callback.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/api/multithreaded/common.h b/lldb/test/api/multithreaded/common.h index 317247e2018..74c5eb3332c 100644 --- a/lldb/test/api/multithreaded/common.h +++ b/lldb/test/api/multithreaded/common.h @@ -16,6 +16,7 @@ struct Exception : public std::exception { std::string s; Exception(std::string ss) : s(ss) {} + virtual ~Exception() throw () { } const char* what() const throw() { return s.c_str(); } }; diff --git a/lldb/test/api/multithreaded/test_breakpoint_callback.cpp b/lldb/test/api/multithreaded/test_breakpoint_callback.cpp index 237e87212c5..a6f256075d2 100644 --- a/lldb/test/api/multithreaded/test_breakpoint_callback.cpp +++ b/lldb/test/api/multithreaded/test_breakpoint_callback.cpp @@ -36,7 +36,7 @@ void test(SBDebugger &dbg, vector<string> args) { if (!breakpoint.IsValid()) throw Exception("invalid breakpoint"); breakpoint.SetCallback(BPCallback, 0); - std::unique_ptr<char> working_dir = get_working_dir(); + std::unique_ptr<char> working_dir(get_working_dir()); SBProcess process = target.LaunchSimple(0, 0, working_dir.get()); { |

