diff --git a/hpvm/lib/Transforms/HPVM2NVDLA/HPVM2NVDLAPass.cpp b/hpvm/lib/Transforms/HPVM2NVDLA/HPVM2NVDLAPass.cpp
index 300d55751832af46660cde6c02a81be5aa4d95de..87f706a77e59386141c9f03738998874abff0867 100644
--- a/hpvm/lib/Transforms/HPVM2NVDLA/HPVM2NVDLAPass.cpp
+++ b/hpvm/lib/Transforms/HPVM2NVDLA/HPVM2NVDLAPass.cpp
@@ -1143,7 +1143,7 @@ void CGT_NVDLA::codeGen(DFLeafNode *N) {
   for (inst_iterator i = inst_begin(F), e = inst_end(F); i != e; ++i) {
     Instruction *I = &(*i);
 
-    if (BuildDFG::isViscIntrinsic(I)) {
+    if (BuildDFG::isHPVMIntrinsic(I)) {
       auto *II = dyn_cast<IntrinsicInst>(I);
       assert((II->getCalledFunction()->getName()).startswith("llvm.hpvm.tensor")
         && "Only HPVM tensor intrinsics allowed in ApproxHPVM leaf nodes\n");