[llvm-commits] CVS: llvm/lib/Transforms/IPO/PruneEH.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 13 10:47:10 PST 2004
Changes in directory llvm/lib/Transforms/IPO:
PruneEH.cpp updated: 1.11 -> 1.12
---
Log message:
Intrinsic functions cannot throw
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/IPO/PruneEH.cpp
diff -u llvm/lib/Transforms/IPO/PruneEH.cpp:1.11 llvm/lib/Transforms/IPO/PruneEH.cpp:1.12
--- llvm/lib/Transforms/IPO/PruneEH.cpp:1.11 Sun Feb 8 15:43:47 2004
+++ llvm/lib/Transforms/IPO/PruneEH.cpp Fri Feb 13 10:46:46 2004
@@ -53,7 +53,7 @@
bool SCCMightThrow = false;
for (unsigned i = 0, e = SCC.size(); !SCCMightThrow && i != e; ++i)
if (Function *F = SCC[i]->getFunction())
- if (F->isExternal()) {
+ if (F->isExternal() && !F->getIntrinsicID()) {
SCCMightThrow = true;
} else {
// Check to see if this function performs an unwind or calls an
More information about the llvm-commits
mailing list