Skip to content

Commit 6b22116

Browse files
committed
[NFC] Improved parameter name.
The parameter name to emitPackExpansionElementMetadata matched the preexisting local variable name. Change it to something meaningful to callers. Use a separate commit to make the original extraction more obviously just an extraction.
1 parent 6bc0c9e commit 6b22116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/GenPack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static Address emitFixedSizeMetadataPackRef(IRGenFunction &IGF,
165165
}
166166

167167
static llvm::Value *emitPackExpansionElementMetadata(
168-
IRGenFunction &IGF, CanPackExpansionType expansionTy, llvm::Value *phi,
168+
IRGenFunction &IGF, CanPackExpansionType expansionTy, llvm::Value *index,
169169
DynamicMetadataRequest request) {
170170
auto patternTy = expansionTy.getPatternType();
171171

@@ -204,7 +204,7 @@ static llvm::Value *emitPackExpansionElementMetadata(
204204
Address fromPtr(
205205
IGF.Builder.CreateInBoundsGEP(patternPackAddress.getElementType(),
206206
patternPackAddress.getAddress(),
207-
phi),
207+
index),
208208
patternPackAddress.getElementType(),
209209
patternPackAddress.getAlignment());
210210
auto metadata = IGF.Builder.CreateLoad(fromPtr);

0 commit comments

Comments
 (0)