diff --git a/IGC/VectorCompiler/lib/Utils/GenX/CostInfo.cpp b/IGC/VectorCompiler/lib/Utils/GenX/CostInfo.cpp index de3e54542bd8..6699ed44361a 100644 --- a/IGC/VectorCompiler/lib/Utils/GenX/CostInfo.cpp +++ b/IGC/VectorCompiler/lib/Utils/GenX/CostInfo.cpp @@ -31,7 +31,7 @@ static float extractConstantFloatMD(const MDOperand &Op) { ConstantFP *V = nullptr; if (auto *VM = dyn_cast(Op)) V = dyn_cast(VM->getValue()); - IGC_ASSERT_MESSAGE(V, "Unexpected null value in metadata"); + IGC_ASSERT_EXIT_MESSAGE(V, "Unexpected null value in metadata"); return V->getValue().convertToFloat(); } @@ -39,7 +39,7 @@ static int extractConstantIntMD(const MDOperand &Op) { ConstantInt *V = nullptr; if (auto *VM = dyn_cast(Op)) V = dyn_cast(VM->getValue()); - IGC_ASSERT_MESSAGE(V, "Unexpected null value in metadata"); + IGC_ASSERT_EXIT_MESSAGE(V, "Unexpected null value in metadata"); return V->getSExtValue(); }