Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@b119313
CarolEidt committed Nov 3, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7898794 commit 6b9dd72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/coreclr/src/jit/importer.cpp
Original file line number Diff line number Diff line change
@@ -1393,9 +1393,10 @@ GenTree* Compiler::impAssignStructPtr(GenTree* destAddr,
// If one or both types are TYP_STRUCT (one may not yet be normalized), they are compatible
// iff their handles are the same.
// Otherwise, they are compatible if their types are the same.
bool typesAreCompatible = ((destType == TYP_STRUCT) || (asgType == TYP_STRUCT))
? ((gtGetStructHandleIfPresent(destNode) == structHnd) && varTypeIsStruct(asgType))
: (destType == asgType);
bool typesAreCompatible =
((destType == TYP_STRUCT) || (asgType == TYP_STRUCT))
? ((gtGetStructHandleIfPresent(destNode) == structHnd) && varTypeIsStruct(asgType))
: (destType == asgType);
if (typesAreCompatible)
{
dest = destNode;

0 comments on commit 6b9dd72

Please sign in to comment.