Skip to content

Commit 6fe8ff2

Browse files
authored
Initialize nextRefPosition (#97169)
1 parent 2f63046 commit 6fe8ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/lsraarm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3737
RefPosition* LinearScan::getNextConsecutiveRefPosition(RefPosition* refPosition)
3838
{
3939
assert(compiler->info.compNeedsConsecutiveRegisters);
40-
RefPosition* nextRefPosition;
40+
RefPosition* nextRefPosition = nullptr;
4141
assert(refPosition->needsConsecutive);
4242
nextConsecutiveRefPositionMap->Lookup(refPosition, &nextRefPosition);
4343
assert((nextRefPosition == nullptr) || nextRefPosition->needsConsecutive);

0 commit comments

Comments
 (0)