[compiler-rt] r234479 - Replace a hard-coded constant with a named one
Timur Iskhodzhanov
timurrrr at google.com
Thu Apr 9 05:20:02 PDT 2015
Author: timurrrr
Date: Thu Apr 9 07:20:02 2015
New Revision: 234479
URL: http://llvm.org/viewvc/llvm-project?rev=234479&view=rev
Log:
Replace a hard-coded constant with a named one
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc?rev=234479&r1=234478&r2=234479&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc Thu Apr 9 07:20:02 2015
@@ -814,7 +814,7 @@ void CovPrepareForSandboxing(__sanitizer
fd_t MaybeOpenCovFile(const char *name) {
CHECK(name);
- if (!coverage_enabled) return -1;
+ if (!coverage_enabled) return kInvalidFd;
InternalScopedString path(kMaxPathLength);
return CovOpenFile(&path, true /* packed */, name);
}
More information about the llvm-commits
mailing list