diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-09-18 16:15:56 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-09-18 16:15:56 +0000 |
| commit | 8f16cc46f7d8983e0075ff698f23ffdb74fe7188 (patch) | |
| tree | 91a77f2245b034926a108282edfa1744c074e087 /libunwind | |
| parent | 5f7e822dc7242c482bbcbcd84ac1bb6004b3b32f (diff) | |
| download | bcm5719-llvm-8f16cc46f7d8983e0075ff698f23ffdb74fe7188.tar.gz bcm5719-llvm-8f16cc46f7d8983e0075ff698f23ffdb74fe7188.zip | |
unwind: remove a could of extraneous `else` (NFC)
Simplify `if return else return` by removing the unnecessary `else`.
llvm-svn: 372233
Diffstat (limited to 'libunwind')
| -rw-r--r-- | libunwind/src/libunwind.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp index c90032bd66c..31f30f5cd70 100644 --- a/libunwind/src/libunwind.cpp +++ b/libunwind/src/libunwind.cpp @@ -171,8 +171,7 @@ _LIBUNWIND_HIDDEN int __unw_get_proc_info(unw_cursor_t *cursor, co->getInfo(info); if (info->end_ip == 0) return UNW_ENOINFO; - else - return UNW_ESUCCESS; + return UNW_ESUCCESS; } _LIBUNWIND_WEAK_ALIAS(__unw_get_proc_info, unw_get_proc_info) @@ -194,8 +193,7 @@ _LIBUNWIND_HIDDEN int __unw_get_proc_name(unw_cursor_t *cursor, char *buf, AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; if (co->getFunctionName(buf, bufLen, offset)) return UNW_ESUCCESS; - else - return UNW_EUNSPEC; + return UNW_EUNSPEC; } _LIBUNWIND_WEAK_ALIAS(__unw_get_proc_name, unw_get_proc_name) |

