[llvm-commits] [llvm-gcc-4.2] r49222 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Fri Apr 4 10:51:57 PDT 2008
Author: johannes
Date: Fri Apr 4 12:51:57 2008
New Revision: 49222
URL: http://llvm.org/viewvc/llvm-project?rev=49222&view=rev
Log:
Simplify; testing flag_exceptions here is redundant.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=49222&r1=49221&r2=49222&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Apr 4 12:51:57 2008
@@ -2488,7 +2488,7 @@
PAL = cast<Function>(Callee)->getParamAttrs();
// Work out whether to use an invoke or an ordinary call.
- if (!tree_could_throw_p(exp) || !flag_exceptions)
+ if (!tree_could_throw_p(exp))
// This call does not throw - mark it 'nounwind'.
PAL = PAL.addAttr(0, ParamAttr::NoUnwind);
More information about the llvm-commits
mailing list