skip empty regMask in verifyRegistersUsed (dotnet/coreclr#18415)
authorSergey Andreenko <seandree@microsoft.com>
Mon, 11 Jun 2018 21:29:17 +0000 (14:29 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jun 2018 21:29:17 +0000 (14:29 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/5c556d13b09e8f7c702da04d8ab2ece8ef9b71a6

src/coreclr/src/jit/regset.cpp

index 2bec96f..1ff5ee0 100644 (file)
@@ -95,6 +95,11 @@ void RegSet::verifyRegistersUsed(regMaskTP regMask)
         return;
     }
 
+    if (regMask == RBM_NONE)
+    {
+        return;
+    }
+
     // TODO-Cleanup: we need to identify the places where the registers
     //               are not marked as used when this is called.
     rsSetRegsModified(regMask);