Skip to content

Commit 43f79df

Browse files
authored
fix a code example found looking through commits
1 parent 4b93736 commit 43f79df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerMiscVisitors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static SILValue isConstIndexAddr(SILValue val, unsigned &index) {
485485
/// Example in SIL pseudo code:
486486
/// %0 = string_literal "abc"
487487
/// %1 = integer_literal 2
488-
/// %2 = index_addr %0, %2
488+
/// %2 = index_addr %0, %1
489489
/// %3 = load %2
490490
/// ->
491491
/// %3 = integer_literal 'c'

0 commit comments

Comments
 (0)