summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2018-03-07 16:51:56 -0800
committerGitHub <noreply@github.com>2018-03-07 16:51:56 -0800
commit0588d76a8b216821b93def9a1712dd00a20e58fd (patch)
treeb504ed24571a4e6206c3aa1391471cca890c5f2b /src
parent71aa610f8e540b082b0126921cafd040dfd9ca6d (diff)
downloadcoreclr-0588d76a8b216821b93def9a1712dd00a20e58fd.tar.gz
coreclr-0588d76a8b216821b93def9a1712dd00a20e58fd.tar.bz2
coreclr-0588d76a8b216821b93def9a1712dd00a20e58fd.zip
an additional assert for fgValueNumberHelperCallFunc (#16789)
Diffstat (limited to 'src')
-rw-r--r--src/jit/valuenum.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jit/valuenum.cpp b/src/jit/valuenum.cpp
index 3723ff4a06..5f7adf97de 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)