Commits

Owen Anderson  committed e142733

Add ConstantRange information to the debugging output.

  • Participants
  • Parent commits 0d49276

Comments (0)

Files changed (1)

File lib/Analysis/LazyValueInfo.cpp

 
   if (Val.isNotConstant())
     return OS << "notconstant<" << *Val.getNotConstant() << '>';
+  else if (Val.isConstantRange())
+    return OS << "constantrange<" << Val.getConstantRange().getLower() << ", "
+              << Val.getConstantRange().getUpper() << '>';
   return OS << "constant<" << *Val.getConstant() << '>';
 }
 }