projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea626a
)
fix fgMorphArgs for stress mode (#81346)
author
Egor Bogatov
<egorbo@gmail.com>
Mon, 30 Jan 2023 12:14:41 +0000
(13:14 +0100)
committer
GitHub
<noreply@github.com>
Mon, 30 Jan 2023 12:14:41 +0000
(13:14 +0100)
src/coreclr/jit/morph.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/jit/morph.cpp
b/src/coreclr/jit/morph.cpp
index
c2aab0c
..
82cfb35
100644
(file)
--- a/
src/coreclr/jit/morph.cpp
+++ b/
src/coreclr/jit/morph.cpp
@@
-3307,8
+3307,9
@@
GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
if (argObj->OperIsIndir())
{
assert(argObj->AsIndir()->Size() == genTypeSize(structBaseType));
- argObj->ChangeType(structBaseType);
argObj->SetOper(GT_IND);
+ // Use ChangeType over argx to update types in COMMAs as well
+ argx->ChangeType(structBaseType);
}
else if (argObj->OperIsLocalRead())
{