From: Bruce Forstall Date: Sun, 19 Mar 2017 06:35:05 +0000 (-0700) Subject: Fix code to build with older VC++ compiler (dotnet/coreclr#10281) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a405363b06acfdf102f7e9fff19c0f0fe8af9f20;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix code to build with older VC++ compiler (dotnet/coreclr#10281) Commit migrated from https://github.com/dotnet/coreclr/commit/8b99922f32596822b14d3d62e8c54fca5b19f257 --- diff --git a/src/coreclr/src/jit/gentree.cpp b/src/coreclr/src/jit/gentree.cpp index 9007d1e..f0b2e41 100644 --- a/src/coreclr/src/jit/gentree.cpp +++ b/src/coreclr/src/jit/gentree.cpp @@ -9652,8 +9652,14 @@ void GenTreeUseEdgeIterator::AdvanceCall() case CALL_CONTROL_EXPR: if (call->gtControlExpr != nullptr) { - m_advance = call->gtCallType == CT_INDIRECT ? &GenTreeUseEdgeIterator::AdvanceCall - : &GenTreeUseEdgeIterator::Terminate; + if (call->gtCallType == CT_INDIRECT) + { + m_advance = &GenTreeUseEdgeIterator::AdvanceCall; + } + else + { + m_advance = &GenTreeUseEdgeIterator::Terminate; + } m_edge = &call->gtControlExpr; return; }