summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-14 18:53:09 +0000
committerChris Lattner <sabre@nondot.org>2006-05-14 18:53:09 +0000
commitf64397ba1aa5df37205a1e3650a1f35f4736f2ac (patch)
tree563d0181483a4e00519e95bfd34e4218976cf4e9 /llvm
parent96749c4cecdaf17190eb90f1619276762b4817db (diff)
downloadbcm5719-llvm-f64397ba1aa5df37205a1e3650a1f35f4736f2ac.tar.gz
bcm5719-llvm-f64397ba1aa5df37205a1e3650a1f35f4736f2ac.zip
This function is not documented as throwing an exception and callers don't
handle it. Just silently fail. llvm-svn: 28291
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/System/Unix/Process.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Process.inc b/llvm/lib/System/Unix/Process.inc
index 32733d61366..0d79ad9beec 100644
--- a/llvm/lib/System/Unix/Process.inc
+++ b/llvm/lib/System/Unix/Process.inc
@@ -132,9 +132,7 @@ void Process::PreventCoreFiles() {
#if HAVE_SETRLIMIT
struct rlimit rlim;
rlim.rlim_cur = rlim.rlim_max = 0;
- int res = setrlimit(RLIMIT_CORE, &rlim);
- if (res != 0)
- ThrowErrno("Can't prevent core file generation");
+ setrlimit(RLIMIT_CORE, &rlim);
#endif
}
OpenPOWER on IntegriCloud