[globalisel][knownbits] Correct a typo that prevented a test working as intended

llvm-svn: 371115
This commit is contained in:
Daniel Sanders 2019-09-05 20:25:52 +00:00
parent 20e8667098
commit e55c4f33ec
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ TEST_F(GISelMITest, TestKnownBitsCst) {
unsigned CopyReg = Copies[Copies.size() - 1];
MachineInstr *FinalCopy = MRI->getVRegDef(CopyReg);
unsigned SrcReg = FinalCopy->getOperand(1).getReg();
unsigned DstReg = FinalCopy->getOperand(1).getReg();
unsigned DstReg = FinalCopy->getOperand(0).getReg();
GISelKnownBits Info(*MF);
KnownBits Res = Info.getKnownBits(SrcReg);
EXPECT_EQ((uint64_t)1, Res.One.getZExtValue());