Remove #if guards from AppendBounds to fix compile on old POSIX.
authorDaniel Thornburgh <dthorn@google.com>
Thu, 16 Mar 2023 23:15:38 +0000 (16:15 -0700)
committerDaniel Thornburgh <dthorn@google.com>
Thu, 16 Mar 2023 23:16:21 +0000 (16:16 -0700)
lldb/source/Plugins/Process/POSIX/CrashReason.cpp

index 058ec6a..2ae7f83 100644 (file)
@@ -54,7 +54,6 @@ static void AppendFaultAddr(std::string &str, lldb::addr_t addr) {
   str += ss.str();
 }
 
-#if defined(si_lower) && defined(si_upper)
 static void AppendBounds(std::string &str, lldb::addr_t lower_bound,
                          lldb::addr_t upper_bound, lldb::addr_t addr) {
   llvm::raw_string_ostream stream(str);
@@ -71,7 +70,6 @@ static void AppendBounds(std::string &str, lldb::addr_t lower_bound,
   stream << ")";
   stream.flush();
 }
-#endif
 
 static CrashReason GetCrashReasonForSIGSEGV(int code) {
   switch (code) {