Skip to content

Commit 2983995

Browse files
committed
Assert that the destination is indeed a var
1 parent cc3035f commit 2983995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Backend/LowerMDShared.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,6 +2707,7 @@ void LowererMD::GenerateFastCmXx(IR::Instr *instr)
27072707
{
27082708
// Fast path for float src when destination is not type specialized to int
27092709
// Assign default value for destination in case either src is NaN
2710+
Assert(dst->IsVar());
27102711
if (isNegOpt)
27112712
{
27122713
opnd = this->m_lowerer->LoadLibraryValueOpnd(instr, LibraryValue::ValueTrue);

0 commit comments

Comments
 (0)