@@ -803,10 +803,11 @@ Value *HWAddressSanitizer::getDynamicShadowIfunc(IRBuilder<> &IRB) {
803
803
}
804
804
805
805
Value *HWAddressSanitizer::getShadowNonTls (IRBuilder<> &IRB) {
806
- if (Mapping.Offset != kDynamicShadowSentinel )
806
+ if (Mapping.Offset != kDynamicShadowSentinel ) {
807
807
return getOpaqueNoopCast (
808
808
IRB, ConstantExpr::getIntToPtr (
809
809
ConstantInt::get (IntptrTy, Mapping.Offset ), PtrTy));
810
+ }
810
811
811
812
if (Mapping.InGlobal )
812
813
return getDynamicShadowIfunc (IRB);
@@ -1013,20 +1014,21 @@ void HWAddressSanitizer::instrumentMemAccessOutline(Value *Ptr, bool IsWrite,
1013
1014
static_cast <uint64_t >(OffsetShifted) << 32 == Mapping.Offset ;
1014
1015
}
1015
1016
1016
- if (UseFixedShadowIntrinsic)
1017
+ if (UseFixedShadowIntrinsic) {
1017
1018
IRB.CreateCall (
1018
1019
Intrinsic::getDeclaration (
1019
1020
M, UseShortGranules
1020
1021
? Intrinsic::hwasan_check_memaccess_shortgranules_fixedshadow
1021
1022
: Intrinsic::hwasan_check_memaccess_fixedshadow),
1022
1023
{Ptr, ConstantInt::get (Int32Ty, AccessInfo),
1023
1024
ConstantInt::get (Int64Ty, Mapping.Offset )});
1024
- else
1025
+ } else {
1025
1026
IRB.CreateCall (Intrinsic::getDeclaration (
1026
1027
M, UseShortGranules
1027
1028
? Intrinsic::hwasan_check_memaccess_shortgranules
1028
1029
: Intrinsic::hwasan_check_memaccess),
1029
1030
{ShadowBase, Ptr, ConstantInt::get (Int32Ty, AccessInfo)});
1031
+ }
1030
1032
}
1031
1033
1032
1034
void HWAddressSanitizer::instrumentMemAccessInline (Value *Ptr, bool IsWrite,
0 commit comments