summaryrefslogtreecommitdiff
path: root/lib/absvdi2.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-31 17:00:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-31 17:00:45 +0000
commit48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b (patch)
tree2430003e391c78e6b21cdf3b8aaca12d94b430be /lib/absvdi2.c
parent95f271b12981bf7f9254fcd4f51be441aa73e638 (diff)
downloadcompiler-rt-48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b.tar.gz
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
Diffstat (limited to 'lib/absvdi2.c')
-rw-r--r--lib/absvdi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/absvdi2.c b/lib/absvdi2.c
index 396802c5c..919afd135 100644
--- a/lib/absvdi2.c
+++ b/lib/absvdi2.c
@@ -24,7 +24,7 @@ __absvdi2(di_int a)
{
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;
}