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/mulvsi3.c b/lib/mulvsi3.c
index 9edeee2..b4a509b 100644
--- a/lib/mulvsi3.c
+++ b/lib/mulvsi3.c
@@ -29,13 +29,13 @@
{
if (b == 0 || b == 1)
return a * b;
- abort();
+ compilerrt_abort();
}
if (b == MIN)
{
if (a == 0 || a == 1)
return a * b;
- abort();
+ compilerrt_abort();
}
si_int sa = a >> (N - 1);
si_int abs_a = (a ^ sa) - sa;
@@ -46,12 +46,12 @@
if (sa == sb)
{
if (abs_a > MAX / abs_b)
- abort();
+ compilerrt_abort();
}
else
{
if (abs_a > MIN / -abs_b)
- abort();
+ compilerrt_abort();
}
return a * b;
}