diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2018-03-07 16:51:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 16:51:56 -0800 |
commit | 0588d76a8b216821b93def9a1712dd00a20e58fd (patch) | |
tree | b504ed24571a4e6206c3aa1391471cca890c5f2b /src | |
parent | 71aa610f8e540b082b0126921cafd040dfd9ca6d (diff) | |
download | coreclr-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.cpp | 2 |
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) |