[compiler-rt] r331954 - [sanitizer] Fix compilation after invalid rebase
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 21:10:09 PDT 2018
Author: vitalybuka
Date: Wed May 9 21:10:09 2018
New Revision: 331954
URL: http://llvm.org/viewvc/llvm-project?rev=331954&view=rev
Log:
[sanitizer] Fix compilation after invalid rebase
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=331954&r1=331953&r2=331954&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed May 9 21:10:09 2018
@@ -975,7 +975,7 @@ bool ThreadLister::IsAlive(int tid) {
// proc_task_readdir. See task_state implementation in Linux.
char path[80];
internal_snprintf(path, sizeof(path), "/proc/%d/task/%d/status", pid_, tid);
- if (!ReadFileToVector(path, &buffer_) || buffer_.empty())
+ if (!ReadFileToBuffer(path, &buffer_) || buffer_.empty())
return false;
buffer_.push_back(0);
static const char kPrefix[] = "\nPPid:";
More information about the llvm-commits
mailing list