[compiler-rt] r331927 - [sanitizer] Fix argument type and remove unneeded vector resize
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 15:03:52 PDT 2018
Author: vitalybuka
Date: Wed May 9 15:03:52 2018
New Revision: 331927
URL: http://llvm.org/viewvc/llvm-project?rev=331927&view=rev
Log:
[sanitizer] Fix argument type and remove unneeded vector resize
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=331927&r1=331926&r2=331927&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed May 9 15:03:52 2018
@@ -905,8 +905,7 @@ bool internal_sigismember(__sanitizer_si
#endif // !SANITIZER_SOLARIS
// ThreadLister implementation.
-ThreadLister::ThreadLister(int pid) : pid_(pid), buffer_(4096) {
- buffer_.resize(buffer_.capacity());
+ThreadLister::ThreadLister(pid_t pid) : pid_(pid), buffer_(4096) {
char task_directory_path[80];
internal_snprintf(task_directory_path, sizeof(task_directory_path),
"/proc/%d/task/", pid);
More information about the llvm-commits
mailing list