Use a private compilerrt_abort() define instead of calling abort directly.
- Fiddling with abort directly is annoying given the way we use system includes, although it would be nice to fix this so we could make sure calling abort directly is verboten.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@100014 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/absvdi2.c b/lib/absvdi2.c
index 396802c..919afd1 100644
--- a/lib/absvdi2.c
+++ b/lib/absvdi2.c
@@ -24,7 +24,7 @@
{
const int N = (int)(sizeof(di_int) * CHAR_BIT);
if (a == ((di_int)1 << (N-1)))
- abort();
+ compilerrt_abort();
const di_int t = a >> (N - 1);
return (a ^ t) - t;
}