aboutsummaryrefslogtreecommitdiff
path: root/type_normalisation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'type_normalisation.cc')
-rw-r--r--type_normalisation.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/type_normalisation.cc b/type_normalisation.cc
index 377198f..70b0493 100644
--- a/type_normalisation.cc
+++ b/type_normalisation.cc
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// -*- mode: C++ -*-
//
-// Copyright 2023 Google LLC
+// Copyright 2023-2024 Google LLC
//
// Licensed under the Apache License v2.0 with LLVM Exceptions (the
// "License"); you may not use this file except in compliance with the
@@ -126,6 +126,10 @@ struct FindQualifiedTypesAndFunctions {
(*this)(x.type_id);
}
+ void operator()(const VariantMember& x, Id) {
+ (*this)(x.type_id);
+ }
+
void operator()(const StructUnion& x, Id) {
if (x.definition.has_value()) {
auto& definition = x.definition.value();