Skip to content

Commit 4e9cd7b

Browse files
committed
Reserve the correct size
1 parent fbba1f3 commit 4e9cd7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ void TaskContextStructManager::createGEPsToPrivateVars() {
18421842

18431843
// Create GEPs for each struct member
18441844
llvmPrivateVars.clear();
1845-
llvmPrivateVars.reserve(privateVarTypes.size());
1845+
llvmPrivateVars.reserve(privateDecls.size());
18461846
llvm::Value *zero = builder.getInt32(0);
18471847
unsigned i = 0;
18481848
for (auto privDecl : privateDecls) {

0 commit comments

Comments
 (0)