Fix DAG combine which creates illegal vector shuffles. Patch by Heikki Kultala.
[oota-llvm.git] / lib / CodeGen / ShadowStackGC.cpp
index 2609256c8ffac9c76f115f9c7de8096b6361b359..0016047a134e9ce9bcb9fb00785ab933f0039a8e 100644 (file)
@@ -116,8 +116,7 @@ namespace {
           // Branches and invokes do not escape, only unwind, resume, and return
           // do.
           TerminatorInst *TI = CurBB->getTerminator();
-          if (!isa<UnwindInst>(TI) && !isa<ReturnInst>(TI) &&
-              !isa<ResumeInst>(TI))
+          if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI))
             continue;
 
           Builder.SetInsertPoint(TI->getParent(), TI);