Permalink
Browse files

Assert that the destination is indeed a var

  • Loading branch information...
Nhat Nguyen
Nhat Nguyen committed Sep 11, 2018
1 parent cc3035f commit 298399529546aac7175df127244e1d7acaeafd3b
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Backend/LowerMDShared.cpp
@@ -2707,6 +2707,7 @@ void LowererMD::GenerateFastCmXx(IR::Instr *instr)
{
// Fast path for float src when destination is not type specialized to int
// Assign default value for destination in case either src is NaN
Assert(dst->IsVar());
if (isNegOpt)
{
opnd = this->m_lowerer->LoadLibraryValueOpnd(instr, LibraryValue::ValueTrue);

0 comments on commit 2983995

Please sign in to comment.