File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1347,11 +1347,12 @@ void X86AsmPrinter::LowerASAN_CHECK_MEMACCESS(const MachineInstr &MI) {
1347
1347
AccessInfo.CompileKernel , &ShadowBase,
1348
1348
&MappingScale, &OrShadowOffset);
1349
1349
1350
- std::string Name = AccessInfo.IsWrite ? " store" : " load" ;
1351
- std::string Op = OrShadowOffset ? " or" : " add" ;
1352
- std::string SymName = " __asan_check_" + Name + " _" + Op + " _" +
1353
- utostr (1ULL << AccessInfo.AccessSizeIndex ) + " _" +
1354
- TM.getMCRegisterInfo ()->getName (Reg.asMCReg ());
1350
+ StringRef Name = AccessInfo.IsWrite ? " store" : " load" ;
1351
+ StringRef Op = OrShadowOffset ? " or" : " add" ;
1352
+ std::string SymName = (" __asan_check_" + Name + " _" + Op + " _" +
1353
+ Twine (1ULL << AccessInfo.AccessSizeIndex ) + " _" +
1354
+ TM.getMCRegisterInfo ()->getName (Reg.asMCReg ()))
1355
+ .str ();
1355
1356
if (OrShadowOffset)
1356
1357
report_fatal_error (
1357
1358
" OrShadowOffset is not supported with optimized callbacks" );
You can’t perform that action at this time.
0 commit comments