From d5541e44fbae473aefe229de81d56fe238b405e8 Mon Sep 17 00:00:00 2001 From: Brian Sullivan Date: Thu, 21 Feb 2019 09:29:07 -0800 Subject: [PATCH] Added enclosing brances for if/then stmts --- src/jit/optcse.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jit/optcse.cpp b/src/jit/optcse.cpp index 67cc64e..688c209 100644 --- a/src/jit/optcse.cpp +++ b/src/jit/optcse.cpp @@ -1978,14 +1978,20 @@ public: { // Excat type match is the expected case if (cseLclVarTyp == expTyp) + { return true; + } // We also allow TYP_BYREF and TYP_I_IMPL as compatible types // if ((cseLclVarTyp == TYP_BYREF) && (expTyp == TYP_I_IMPL)) + { return true; + } if ((cseLclVarTyp == TYP_I_IMPL) && (expTyp == TYP_BYREF)) + { return true; + } // Otherwise we have incompatible types return false; -- 2.7.4