Address dotnet/coreclr#10799 comments
authorSteve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com>
Fri, 7 Apr 2017 18:16:11 +0000 (18:16 +0000)
committerSteve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com>
Fri, 7 Apr 2017 18:16:11 +0000 (18:16 +0000)
Commit migrated from https://github.com/dotnet/coreclr/commit/dc778e1ac129e12223f5ed62db5bfae0d0e2c6ad

src/coreclr/src/jit/compiler.hpp

index d2ce07c..88c082d 100644 (file)
@@ -2336,14 +2336,9 @@ inline
             assert(varDsc->lvIsParam);
 #endif // FEATURE_UNIX_AMD64_STRUCT_PASSING
 #elif !defined(LEGACY_BACKEND)
-#if defined(_TARGET_X86_)
-            // For !LEGACY_BACKEND on x86, a stack parameter that is enregistered will have a stack location.
-            assert(varDsc->lvIsParam && !varDsc->lvIsRegArg);
-#else
             // For !LEGACY_BACKEND on other targets, a stack parameter that is enregistered or prespilled
             // for profiling on ARM will have a stack location.
             assert((varDsc->lvIsParam && !varDsc->lvIsRegArg) || isPrespilledArg);
-#endif
 #else  // !(_TARGET_AMD64 || defined(LEGACY_BACKEND))
             // Otherwise, we only have a valid stack location for:
             // A parameter that was passed on the stack, being homed into its register home,