summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-11-11 04:29:25 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-11-11 04:29:25 +0000
commitc1edf566b9ba18806c9a69e77db1cc8e57a14c8d (patch)
treeea1b174a6e594d2b6929f9e4845cc2ba3d9d6f93 /lldb/source/Target/Thread.cpp
parent41af43092ccc8030bb49cea324d85eecd5ae68a8 (diff)
downloadbcm5719-llvm-c1edf566b9ba18806c9a69e77db1cc8e57a14c8d.tar.gz
bcm5719-llvm-c1edf566b9ba18806c9a69e77db1cc8e57a14c8d.zip
Prevent at compile time converting from Error::success() to Expected<T>
This would trigger an assertion at runtime otherwise. Differential Revision: https://reviews.llvm.org/D26482 llvm-svn: 286562
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 4034ed3da6c..8e2a9c740d0 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -1766,7 +1766,7 @@ Error Thread::JumpToLine(const FileSpec &file, uint32_t line,
if (!reg_ctx->SetPC(dest))
return Error("Cannot change PC to target address.");
- return Error::success();
+ return Error();
}
void Thread::DumpUsingSettingsFormat(Stream &strm, uint32_t frame_idx,
OpenPOWER on IntegriCloud