Fix for Darwin buildbot failure due to r337037
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Fri, 13 Jul 2018 20:56:48 +0000 (20:56 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Fri, 13 Jul 2018 20:56:48 +0000 (20:56 +0000)
Duplicate __get_unsafe_stack_bottom instead of using an alias for
platforms that don't suppport it like Darwin.

llvm-svn: 337044

compiler-rt/lib/safestack/safestack.cc

index cc6d81b..8af9362 100644 (file)
@@ -267,8 +267,9 @@ extern "C"
 }
 
 extern "C"
-    __attribute__((visibility("default"), alias("__get_unsafe_stack_bottom")))
-    void *__get_unsafe_stack_start();
+    __attribute__((visibility("default"))) void *__get_unsafe_stack_start() {
+  return unsafe_stack_start;
+}
 
 extern "C"
     __attribute__((visibility("default"))) void *__get_unsafe_stack_ptr() {