From 0588d76a8b216821b93def9a1712dd00a20e58fd Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Wed, 7 Mar 2018 16:51:56 -0800 Subject: [PATCH] an additional assert for fgValueNumberHelperCallFunc (#16789) --- src/jit/valuenum.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jit/valuenum.cpp b/src/jit/valuenum.cpp index 3723ff4..5f7adf9 100644 --- a/src/jit/valuenum.cpp +++ b/src/jit/valuenum.cpp @@ -7519,6 +7519,8 @@ void Compiler::fgValueNumberHelperCallFunc(GenTreeCall* call, VNFunc vnf, ValueN // Add the accumulated exceptions. call->gtVNPair = vnStore->VNPWithExc(call->gtVNPair, vnpExc); } + assert(args == nullptr || + generateUniqueVN); // All arguments should be processed or we generate unique VN and do not care. } void Compiler::fgValueNumberCall(GenTreeCall* call) -- 2.7.4