@@ -2997,8 +2997,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
29972997 // / fine).
29982998 // /
29992999 // / Caller guarantees that this intrinsic does not access memory.
3000- bool maybeHandleSimpleNomemIntrinsic (IntrinsicInst &I,
3001- unsigned int trailingFlags) {
3000+ [[maybe_unused]] bool
3001+ maybeHandleSimpleNomemIntrinsic (IntrinsicInst &I,
3002+ unsigned int trailingFlags) {
30023003 Type *RetTy = I.getType ();
30033004 if (!(RetTy->isIntOrIntVectorTy () || RetTy->isFPOrFPVectorTy ()))
30043005 return false ;
@@ -3049,7 +3050,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
30493050 }
30503051
30513052 if (I.doesNotAccessMemory ())
3052- if (maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags */ 0 ))
3053+ if (maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags= */ 0 ))
30533054 return true ;
30543055
30553056 // FIXME: detect and handle SSE maskstore/maskload?
@@ -4690,6 +4691,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
46904691 case Intrinsic::x86_avx2_maskload_d_256:
46914692 case Intrinsic::x86_avx2_maskload_q_256: {
46924693 handleAVXMaskedLoad (I);
4694+ break ;
4695+ }
46934696
46944697 // Packed
46954698 case Intrinsic::x86_avx512_min_ps_512:
@@ -4699,9 +4702,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
46994702 // These AVX512 variants contain the rounding mode as a trailing flag.
47004703 // Earlier variants do not have a trailing flag and are already handled
47014704 // by maybeHandleSimpleNomemIntrinsic(I, 0) via handleUnknownIntrinsic.
4702- bool success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags */ 1 );
4703- (void )success;
4704- assert (success);
4705+ bool Success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags=*/ 1 );
4706+ assert (Success);
47054707 break ;
47064708 }
47074709
0 commit comments