We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaf6e9 commit a520283Copy full SHA for a520283
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -6159,8 +6159,10 @@ struct VarArgGenericHelper : public VarArgHelperBase {
6159
unsigned VAArgOffset = 0;
6160
const DataLayout &DL = F.getDataLayout();
6161
unsigned IntptrSize = DL.getTypeStoreSize(MS.IntptrTy);
6162
- for (Value *A :
6163
- llvm::drop_begin(CB.args(), CB.getFunctionType()->getNumParams())) {
+ for (const auto &[ArgNo, A] : llvm::enumerate(CB.args())) {
+ bool IsFixed = ArgNo < CB.getFunctionType()->getNumParams();
6164
+ if (IsFixed)
6165
+ continue;
6166
uint64_t ArgSize = DL.getTypeAllocSize(A->getType());
6167
if (DL.isBigEndian()) {
6168
// Adjusting the shadow for argument with size < IntptrSize to match the
0 commit comments