summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-01-22 20:26:30 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-01-22 20:26:30 +0000
commit27ea26b7c0882a0c2e82422860d354408e825a05 (patch)
treef5fe15f39b519fd57be088e7b8f966af66244347
parent6a4e0dd1a68e9fb21255e57cf53adf8c6ca9c114 (diff)
downloadbcm5719-llvm-27ea26b7c0882a0c2e82422860d354408e825a05.tar.gz
bcm5719-llvm-27ea26b7c0882a0c2e82422860d354408e825a05.zip
Silence -Wreturn-type warnings
Address a couple of instances of -Wreturn-type warning from GCC. The switches are covered, add an llvm_unreachable to the end of the functions to silence the warning. NFC. llvm-svn: 258546
-rw-r--r--lldb/source/Expression/ExpressionSourceCode.cpp1
-rw-r--r--lldb/source/Target/Process.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp
index 93bac62c43c..2601727cf35 100644
--- a/lldb/source/Expression/ExpressionSourceCode.cpp
+++ b/lldb/source/Expression/ExpressionSourceCode.cpp
@@ -119,6 +119,7 @@ public:
default:
return false;
}
+ llvm_unreachable("unhandled state");
}
private:
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index c347781f6bd..eb6da794399 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -1501,6 +1501,7 @@ Process::IsAlive ()
default:
return false;
}
+ llvm_unreachable("unhandled state");
}
// This static callback can be used to watch for local child processes on
OpenPOWER on IntegriCloud