@@ -214,16 +214,16 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D,
214214 if (MSIMD == " lsx" ) {
215215 // Option -msimd=lsx depends on 64-bit FPU.
216216 // -m*-float and -mfpu=none/0/32 conflict with -msimd=lsx.
217- if (llvm::find (Features, " -d" ) != Features. end ( ))
217+ if (llvm::is_contained (Features, " -d" ))
218218 D.Diag (diag::err_drv_loongarch_wrong_fpu_width) << /* LSX*/ 0 ;
219219 else
220220 Features.push_back (" +lsx" );
221221 } else if (MSIMD == " lasx" ) {
222222 // Option -msimd=lasx depends on 64-bit FPU and LSX.
223223 // -m*-float, -mfpu=none/0/32 and -mno-lsx conflict with -msimd=lasx.
224- if (llvm::find (Features, " -d" ) != Features. end ( ))
224+ if (llvm::is_contained (Features, " -d" ))
225225 D.Diag (diag::err_drv_loongarch_wrong_fpu_width) << /* LASX*/ 1 ;
226- else if (llvm::find (Features, " -lsx" ) != Features. end ( ))
226+ else if (llvm::is_contained (Features, " -lsx" ))
227227 D.Diag (diag::err_drv_loongarch_invalid_simd_option_combination);
228228
229229 // The command options do not contain -mno-lasx.
@@ -232,9 +232,9 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D,
232232 Features.push_back (" +lasx" );
233233 }
234234 } else if (MSIMD == " none" ) {
235- if (llvm::find (Features, " +lsx" ) != Features. end ( ))
235+ if (llvm::is_contained (Features, " +lsx" ))
236236 Features.push_back (" -lsx" );
237- if (llvm::find (Features, " +lasx" ) != Features. end ( ))
237+ if (llvm::is_contained (Features, " +lasx" ))
238238 Features.push_back (" -lasx" );
239239 } else {
240240 D.Diag (diag::err_drv_loongarch_invalid_msimd_EQ) << MSIMD;
0 commit comments