diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:14:12 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:14:12 +0000 |
commit | a4092fcbfb39b4d32a8e152a110d20132779d538 (patch) | |
tree | 37c84fe56b8ec43e3b08de27d76f53e259ddb0c7 /source/Target | |
parent | cce7c2b0d24e364b1907670cf6f843531e5fe052 (diff) |
Notes
Diffstat (limited to 'source/Target')
-rw-r--r-- | source/Target/ABI.cpp | 3 | ||||
-rw-r--r-- | source/Target/Platform.cpp | 5 | ||||
-rw-r--r-- | source/Target/StackFrameList.cpp | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/source/Target/ABI.cpp b/source/Target/ABI.cpp index de4f685eb1c7a..87363a3b8aeb8 100644 --- a/source/Target/ABI.cpp +++ b/source/Target/ABI.cpp @@ -189,8 +189,7 @@ bool ABI::PrepareTrivialCall(Thread &thread, lldb::addr_t sp, lldb::addr_t returnAddress, llvm::Type &returntype, llvm::ArrayRef<ABI::CallArgument> args) const { // dummy prepare trivial call - assert(!"Should never get here!"); - return false; + llvm_unreachable("Should never get here!"); } bool ABI::GetFallbackRegisterLocation( diff --git a/source/Target/Platform.cpp b/source/Target/Platform.cpp index 43371ec236147..d8db53663f14b 100644 --- a/source/Target/Platform.cpp +++ b/source/Target/Platform.cpp @@ -1876,9 +1876,8 @@ size_t Platform::GetSoftwareBreakpointTrapOpcode(Target &target, } break; default: - assert( - !"Unhandled architecture in Platform::GetSoftwareBreakpointTrapOpcode"); - break; + llvm_unreachable( + "Unhandled architecture in Platform::GetSoftwareBreakpointTrapOpcode"); } assert(bp_site); diff --git a/source/Target/StackFrameList.cpp b/source/Target/StackFrameList.cpp index 872e153ddb065..146b2b05dbd7a 100644 --- a/source/Target/StackFrameList.cpp +++ b/source/Target/StackFrameList.cpp @@ -541,8 +541,7 @@ StackFrameSP StackFrameList::GetFrameAtIndex(uint32_t idx) { if (m_frames.empty()) { // Why do we have a thread with zero frames, that should not ever // happen... - if (m_thread.IsValid()) - assert("A valid thread has no frames."); + assert(!m_thread.IsValid() && "A valid thread has no frames."); } else { ResetCurrentInlinedDepth(); frame_sp = m_frames[original_idx]; |