diff --git a/llvm/tools/hpvm/lib/Transforms/GenVISC/GenVISC.cpp b/llvm/tools/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
index 84180fc8489dc0b7fc523006f8c60a8df6b33b58..ecd1d460eac68fe187f84269dc7b40552ccb118f 100644
--- a/llvm/tools/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
+++ b/llvm/tools/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
@@ -943,6 +943,7 @@ bool GenVISC::runOnModule(Module &M) {
         Constant* F = ConstantExpr::getPointerCast(graphFunc, Type::getInt8PtrTy(Ctx));
 
         ConstantInt* Op = cast<ConstantInt>(CI->getArgOperand(0));
+	assert(Op && "VISC launch's streaming argument is a constant value.");
         Value* isStreaming = Op->isZero()? ConstantInt::getFalse(Ctx)
                              : ConstantInt::getTrue(Ctx);