diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-03-17 07:32:03 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-03-17 07:32:03 -0700 |
commit | e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8 (patch) | |
tree | 93a8469e1cb02aef602d688b363182ccc2786d44 /src/vm/util.cpp | |
parent | 89909d343e63707c326f2f1422c6c5dc87a30d82 (diff) | |
download | coreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.tar.gz coreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.tar.bz2 coreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.zip |
Fix some of the issues found by Viva64 static analyser
Diffstat (limited to 'src/vm/util.cpp')
-rw-r--r-- | src/vm/util.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vm/util.cpp b/src/vm/util.cpp index f9f8718a22..faeb2002d7 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -652,13 +652,11 @@ bool operator ==(const ICorDebugInfo::VarLoc &varLoc1, varLoc1.vlStkReg.vlsrReg == varLoc2.vlStkReg.vlsrReg; case ICorDebugInfo::VLT_STK2: - // <TODO>@TODO : VLT_STK(2) is overloaded to also indicate valueclasses - // which should be VLT_STK_n. Just have a parameterized VLT_STK_n.</TODO> - return varLoc1.vlStk2.vls2BaseReg == varLoc1.vlStk2.vls2BaseReg && - varLoc1.vlStk2.vls2Offset == varLoc1.vlStk2.vls2Offset; + return varLoc1.vlStk2.vls2BaseReg == varLoc2.vlStk2.vls2BaseReg && + varLoc1.vlStk2.vls2Offset == varLoc2.vlStk2.vls2Offset; case ICorDebugInfo::VLT_FPSTK: - return varLoc1.vlFPstk.vlfReg == varLoc1.vlFPstk.vlfReg; + return varLoc1.vlFPstk.vlfReg == varLoc2.vlFPstk.vlfReg; default: _ASSERTE(!"Bad vlType"); return false; |