summaryrefslogtreecommitdiffstats
path: root/chromium/patches/llvm21-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/patches/llvm21-fixes.patch')
-rw-r--r--chromium/patches/llvm21-fixes.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/chromium/patches/llvm21-fixes.patch b/chromium/patches/llvm21-fixes.patch
new file mode 100644
index 0000000..01208af
--- /dev/null
+++ b/chromium/patches/llvm21-fixes.patch
@@ -0,0 +1,44 @@
1diff --git a/components/autofill/core/browser/payments/full_card_request.cc b/components/autofill/core/browser/payments/full_card_request.cc
2index 8b7319d..5a8ade3 100644
3--- a/components/autofill/core/browser/payments/full_card_request.cc
4+++ b/components/autofill/core/browser/payments/full_card_request.cc
5@@ -124,7 +124,7 @@ void FullCardRequest::GetFullCardImpl(
6 request_->card = std::move(card);
7 request_->last_committed_primary_main_frame_origin =
8 last_committed_primary_main_frame_origin;
9- request_->context_token = std::move(context_token).value_or({});
10+ request_->context_token = std::move(context_token).value_or(std::string{});
11 request_->selected_challenge_option = std::move(selected_challenge_option);
12
13 should_unmask_card_ = request_->card.masked() ||
14diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
15index eef47b4..710f070 100644
16--- a/ui/gfx/paint_vector_icon.cc
17+++ b/ui/gfx/paint_vector_icon.cc
18@@ -235,7 +235,7 @@ void PaintPath(Canvas* canvas,
19 break;
20
21 case H_LINE_TO: {
22- const SkPoint last_point = path.getLastPt().value_or({0, 0});
23+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
24 path.lineTo(arg(0), last_point.fY);
25 break;
26 }
27@@ -245,7 +245,7 @@ void PaintPath(Canvas* canvas,
28 break;
29
30 case V_LINE_TO: {
31- const SkPoint last_point = path.getLastPt().value_or({0, 0});
32+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
33 path.lineTo(last_point.fX, arg(0));
34 break;
35 }
36@@ -273,7 +273,7 @@ void PaintPath(Canvas* canvas,
37 // details.
38 // Note that |x1| and |y1| will correspond to the sole control point if
39 // calculating a quadratic curve.
40- const SkPoint last_point = path.getLastPt().value_or({0, 0});
41+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
42 SkScalar delta_x = 0;
43 SkScalar delta_y = 0;
44 if (IsCommandTypeCurve(previous_command_type)) {