@@ -286,7 +286,7 @@ static cl::opt<MSanEmbedFaultingInstructionMode> ClEmbedFaultingInst(
286
286
clEnumValN(
287
287
MSanEmbedFaultingInstructionMode::Full, " full" ,
288
288
" Embed the complete LLVM IR instruction (including operands)." )),
289
- cl::Hidden, cl::init(MSanEmbedFaultingInstructionMode::Name ));
289
+ cl::Hidden, cl::init(MSanEmbedFaultingInstructionMode::None ));
290
290
291
291
static cl::opt<bool >
292
292
ClHandleICmpExact (" msan-handle-icmp-exact" ,
@@ -929,7 +929,7 @@ void MemorySanitizer::createUserspaceApi(Module &M,
929
929
StringRef WarningFnName = getWarningFnName (
930
930
TrackOrigins, Recover,
931
931
ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None);
932
- SmallVector<Type *, 4 > ArgsTy = {};
932
+ SmallVector<Type *, 2 > ArgsTy = {};
933
933
if (TrackOrigins) {
934
934
ArgsTy.push_back (IRB.getInt32Ty ());
935
935
if (ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None)
@@ -974,7 +974,7 @@ void MemorySanitizer::createUserspaceApi(Module &M,
974
974
AccessSizeIndex++) {
975
975
unsigned AccessSize = 1 << AccessSizeIndex;
976
976
std::string FunctionName = " __msan_maybe_warning_" + itostr (AccessSize);
977
- SmallVector<Type *, 4 > ArgsTy = {IRB.getIntNTy (AccessSize * 8 ),
977
+ SmallVector<Type *, 3 > ArgsTy = {IRB.getIntNTy (AccessSize * 8 ),
978
978
IRB.getInt32Ty ()};
979
979
if (ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None) {
980
980
FunctionName = " __msan_maybe_warning_instname_" + itostr (AccessSize);
@@ -1500,7 +1500,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
1500
1500
Value *ConvertedShadow2 =
1501
1501
IRB.CreateZExt (ConvertedShadow, IRB.getIntNTy (8 * (1 << SizeIndex)));
1502
1502
1503
- SmallVector<Value *, 4 > Args = {
1503
+ SmallVector<Value *, 3 > Args = {
1504
1504
ConvertedShadow2,
1505
1505
MS.TrackOrigins && Origin ? Origin : (Value *)IRB.getInt32 (0 )};
1506
1506
if (ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None)
0 commit comments