File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -2624,10 +2624,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
2624
2624
2625
2625
FixedVectorType *ParamType =
2626
2626
cast<FixedVectorType>(I.getArgOperand (0 )->getType ());
2627
- if (I.arg_size () == 2 ) {
2628
- assert (I.getArgOperand (1 )->getType ()->isVectorTy ());
2629
- assert (ParamType == cast<FixedVectorType>(I.getArgOperand (1 )->getType ()));
2630
- }
2627
+ if (I.arg_size () == 2 )
2628
+ assert (I.getArgOperand (0 )->getType () == I.getArgOperand (1 )->getType ());
2631
2629
2632
2630
[[maybe_unused]] FixedVectorType *ReturnType =
2633
2631
cast<FixedVectorType>(I.getType ());
@@ -2676,10 +2674,6 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
2676
2674
if (ReinterpretShadowTy)
2677
2675
SecondArgShadow =
2678
2676
IRB.CreateBitCast (SecondArgShadow, ReinterpretShadowTy);
2679
- assert ((cast<FixedVectorType>(SecondArgShadow->getType ())
2680
- ->getNumElements ()) %
2681
- 2 ==
2682
- 0 );
2683
2677
2684
2678
EvenShadow =
2685
2679
IRB.CreateShuffleVector (FirstArgShadow, SecondArgShadow, EvenMask);
You can’t perform that action at this time.
0 commit comments