Check that catch clauses have pointer type.
[oota-llvm.git] / lib / VMCore / Instruction.cpp
index f54cec11e2e3f3fa1d6d33ce9933143fda4e8e72..73191c19658cc0e77d3f7ca53ef9fd856ec3ec33 100644 (file)
@@ -436,6 +436,10 @@ bool Instruction::isSafeToSpeculativelyExecute() const {
   case Unwind:
   case Unreachable:
   case Fence:
+  case LandingPad:
+  case AtomicRMW:
+  case AtomicCmpXchg:
+  case Resume:
     return false; // Misc instructions which have effects
   }
 }