diff options
| author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-06-19 19:05:52 +0000 |
|---|---|---|
| committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-06-19 19:05:52 +0000 |
| commit | 44f4db784bc591696249a2eac4f2a7d112418de8 (patch) | |
| tree | 71cee4fc1b01798f06e4ac2473c02cefc0affbb9 /lldb/source/Plugins/Process/POSIX | |
| parent | a297a97e0910500e2b7bcdaad0529c2fec3acd7d (diff) | |
| download | bcm5719-llvm-44f4db784bc591696249a2eac4f2a7d112418de8.tar.gz bcm5719-llvm-44f4db784bc591696249a2eac4f2a7d112418de8.zip | |
Fix two 'variable is used uninitialised' warnings. Change assert to llvm_unreachable.
llvm-svn: 184334
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX')
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/POSIXThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp index d3e98bbc6b0..dc024f8db0b 100644 --- a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp +++ b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp @@ -488,13 +488,13 @@ POSIXThread::ThreadNotify(const ProcessMessage &message) unsigned POSIXThread::GetRegisterIndexFromOffset(unsigned offset) { - unsigned reg; + unsigned reg = 0; ArchSpec arch = Host::GetArchitecture(); switch (arch.GetCore()) { default: - assert(false && "CPU type not supported!"); + llvm_unreachable("CPU type not supported!"); break; case ArchSpec::eCore_x86_32_i386: |

