Skip to content

Commit 5212ee1

Browse files
fixup! fix typo
1 parent 6b710d0 commit 5212ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/SubtargetEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ Record *SubtargetEmitter::FindReadAdvance(const CodeGenSchedRW &SchedRead,
965965
// there is no need to verify whether there are resources defined for both
966966
// SchedWrite and its alias.
967967
if (!AliasDef && AliasDef == RA->getValueAsDef("ReadType")) {
968-
ResDef = WR;
968+
ResDef = RA;
969969
break;
970970
} else if (SchedRead.TheDef == RA->getValueAsDef("ReadType")) {
971971
if (ResDef) {

0 commit comments

Comments
 (0)