[compiler-rt] r224910 - [sanitizer-common] Fixing the ASan test build failure on OS X

Kuba Brecka kuba.brecka at gmail.com
Sun Dec 28 18:18:59 PST 2014


Author: kuba.brecka
Date: Sun Dec 28 20:18:59 2014
New Revision: 224910

URL: http://llvm.org/viewvc/llvm-project?rev=224910&view=rev
Log:
[sanitizer-common] Fixing the ASan test build failure on OS X

The change in r224819 started using internal_unlink in a sanitizer_common unit test. For some reason, internal_unlink is not defined in sanitizer_mac.cc, fixing that.


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=224910&r1=224909&r2=224910&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Sun Dec 28 20:18:59 2014
@@ -109,6 +109,10 @@ uptr internal_readlink(const char *path,
   return readlink(path, buf, bufsize);
 }
 
+uptr internal_unlink(const char *path) {
+  return unlink(path);
+}
+
 uptr internal_sched_yield() {
   return sched_yield();
 }





More information about the llvm-commits mailing list