Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3154e16

Browse files
committed
Dodge compiler bug in Visual Studio 2013.
VS2013 apparently has a problem with taking the address of a formalparameter in some cases. We do that elsewhere without trouble, butin this case the address is being passed to a subroutine that willprobably get inlined, so maybe the combination of those things iswhat tickles the bug. Anyway, introducing an extra copy of theparameter value is enough to work around it. Per trouble reportfrom Umair Shahid.Report: <CAM184AcjqKYZSdQqBHDrnENXHhW=mXbUC46QYPJ=nAh0gUHCGA@mail.gmail.com>
1 parent8ebb69f commit3154e16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/optimizer/path/costsize.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3914,8 +3914,10 @@ calc_joinrel_size_estimate(PlannerInfo *root,
39143914
doubleouter_rows,
39153915
doubleinner_rows,
39163916
SpecialJoinInfo*sjinfo,
3917-
List*restrictlist)
3917+
List*restrictlist_in)
39183918
{
3919+
/* This apparently-useless variable dodges a compiler bug in VS2013: */
3920+
List*restrictlist=restrictlist_in;
39193921
JoinTypejointype=sjinfo->jointype;
39203922
Selectivityfkselec;
39213923
Selectivityjselec;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp