summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Hoyos <juan.hoyos@microsoft.com>2019-01-15 12:01:45 -0800
committerGitHub <noreply@github.com>2019-01-15 12:01:45 -0800
commit86b4ac59ef9d19e8f635086ea6a20a291c1dd26a (patch)
treecd91abb8f2b60c341e6ca6a168648fc2d377ba68
parent35c8c4e01066e50756c04893e535777b50e6f0e0 (diff)
parent04841921010ba3be991064334de423558209c975 (diff)
downloadcoreclr-86b4ac59ef9d19e8f635086ea6a20a291c1dd26a.tar.gz
coreclr-86b4ac59ef9d19e8f635086ea6a20a291c1dd26a.tar.bz2
coreclr-86b4ac59ef9d19e8f635086ea6a20a291c1dd26a.zip
Merge pull request #21963 from BrianBohe/master
Remove unreachable code
-rw-r--r--src/jit/gcencode.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/jit/gcencode.cpp b/src/jit/gcencode.cpp
index 3d3cd88236..4ec6f4cb8b 100644
--- a/src/jit/gcencode.cpp
+++ b/src/jit/gcencode.cpp
@@ -4216,14 +4216,7 @@ void GCInfo::gcMakeRegPtrTable(
}
else
{
- if (!varDsc->lvOnFrame)
- {
- // If this non-enregistered pointer arg is never
- // used, we don't need to report it.
- assert(varDsc->lvRefCnt() == 0);
- continue;
- }
- else if (varDsc->lvIsRegArg && varDsc->lvTracked)
+ if (varDsc->lvIsRegArg && varDsc->lvTracked)
{
// If this register-passed arg is tracked, then
// it has been allocated space near the other