diff --git a/.pick_status.json b/.pick_status.json index 0f9270ec9b4..2312fcd6879 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -6264,7 +6264,7 @@ "description": "intel/brw: Fix implementaiton of |= operator for enum", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "df37c7ca743f6407cee4cc6cde7a33fdfe8ed3b7", "notes": null diff --git a/src/intel/compiler/brw_analysis.h b/src/intel/compiler/brw_analysis.h index 2b423edf0d4..496265fb057 100644 --- a/src/intel/compiler/brw_analysis.h +++ b/src/intel/compiler/brw_analysis.h @@ -83,10 +83,9 @@ operator|(brw_analysis_dependency_class x, brw_analysis_dependency_class y) } inline brw_analysis_dependency_class -operator|=(brw_analysis_dependency_class x, brw_analysis_dependency_class y) +operator|=(brw_analysis_dependency_class &x, brw_analysis_dependency_class y) { - return static_cast( - static_cast(x) | static_cast(y)); + return x = x | y; } /**