summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-06-10 04:53:14 +0000
committerFangrui Song <maskray@google.com>2018-06-10 04:53:14 +0000
commit69d6418d607fdfc36f621cb5fbd8c4ce3f4a89bc (patch)
treed89771c183704c82a535c99243ae6bfed5068d89 /llvm/lib/Support/Unix
parent071a09053ad2e5cc6e7f9fcace738193528c07b5 (diff)
downloadbcm5719-llvm-69d6418d607fdfc36f621cb5fbd8c4ce3f4a89bc.tar.gz
bcm5719-llvm-69d6418d607fdfc36f621cb5fbd8c4ce3f4a89bc.zip
Cleanup. NFC
llvm-svn: 334357
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc2
-rw-r--r--llvm/lib/Support/Unix/Process.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index f3f529e54d7..9800f866309 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -521,7 +521,7 @@ static void expandTildeExpr(SmallVectorImpl<char> &Path) {
}
static std::error_code fillStatus(int StatRet, const struct stat &Status,
- file_status &Result) {
+ file_status &Result) {
if (StatRet != 0) {
std::error_code ec(errno, std::generic_category());
if (ec == errc::no_such_file_or_directory)
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index 68baab8a0b6..43ba6d615c6 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -79,7 +79,7 @@ unsigned Process::getPageSize() {
#elif defined(HAVE_SYSCONF)
static long page_size = ::sysconf(_SC_PAGE_SIZE);
#else
-#warning Cannot get the page size on this machine
+#error Cannot get the page size on this machine
#endif
return static_cast<unsigned>(page_size);
}
OpenPOWER on IntegriCloud