Skip to content

Commit

Permalink
fix a few typos/leftovers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Andreenko committed May 4, 2020
1 parent fe93871 commit 342b12d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/coreclr/src/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15137,9 +15137,9 @@ GenTree* Compiler::gtNewTempAssign(
// and call returns. Lowering and Codegen will handle these.
ok = true;
}
else if (dstTyp == TYP_STRUCT && valTyp == TYP_INT)
else if ((dstTyp == TYP_STRUCT) && (valTyp == TYP_INT))
{
// It could come from `ASG(struct, 0)` that was propogated to `RETURN struct(0)`,
// It could come from `ASG(struct, 0)` that was propagated to `RETURN struct(0)`,
// and now it is merging to a struct again.
assert(!compDoOldStructRetyping());
assert(tmp == genReturnLocal);
Expand Down Expand Up @@ -17202,10 +17202,6 @@ CORINFO_CLASS_HANDLE Compiler::gtGetStructHandleIfPresent(GenTree* tree)
{
default:
break;
case GT_BITCAST:
assert(!compDoOldStructRetyping());
structHnd = gtGetStructHandleIfPresent(tree->AsUnOp()->gtOp1);
break;
case GT_MKREFANY:
structHnd = impGetRefAnyClass();
break;
Expand Down
1 change: 0 additions & 1 deletion src/coreclr/src/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3176,7 +3176,6 @@ void Lowering::LowerCallStruct(GenTreeCall* call)
case GT_STOREIND:
assert(user->TypeIs(TYP_SIMD8, TYP_REF));
user->ChangeType(returnType);
user->SetOper(GT_STOREIND);
break;

default:
Expand Down

0 comments on commit 342b12d

Please sign in to comment.