aboutsummaryrefslogtreecommitdiff
path: root/lib/negvti2.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/negvti2.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/negvti2.c')
-rw-r--r--lib/negvti2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/negvti2.c b/lib/negvti2.c
index df44935f1..d56e1e32a 100644
--- a/lib/negvti2.c
+++ b/lib/negvti2.c
@@ -26,7 +26,7 @@ __negvti2(ti_int a)
{
const ti_int MIN = (ti_int)1 << ((int)(sizeof(ti_int) * CHAR_BIT)-1);
if (a == MIN)
- abort();
+ compilerrt_abort();
return -a;
}