[PATCH] D32032: [Support] ErrorOr assertion when /proc/cpuinfo doesn't exist.
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 15:04:35 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300267: [Support] Fix ErrorOr assertion when /proc/cpuinfo doesn't exist. (authored by tejohnson).
Changed prior to commit:
https://reviews.llvm.org/D32032?vs=95158&id=95223#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32032
Files:
llvm/trunk/lib/Support/Host.cpp
Index: llvm/trunk/lib/Support/Host.cpp
===================================================================
--- llvm/trunk/lib/Support/Host.cpp
+++ llvm/trunk/lib/Support/Host.cpp
@@ -1245,6 +1245,7 @@
if (std::error_code EC = Text.getError()) {
llvm::errs() << "Can't read "
<< "/proc/cpuinfo: " << EC.message() << "\n";
+ return -1;
}
SmallVector<StringRef, 8> strs;
(*Text)->getBuffer().split(strs, "\n", /*MaxSplit=*/-1,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32032.95223.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/d83ef8c9/attachment.bin>
More information about the llvm-commits
mailing list