forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry-pick of envoyproxy#13739 (#279)
Signed-off-by: Kuat Yessenov <kuat@google.com>
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/eval/eval/field_backed_map_impl.cc b/eval/eval/field_backed_map_impl.cc | ||
index cd56f51..4d2a546 100644 | ||
--- a/eval/eval/field_backed_map_impl.cc | ||
+++ b/eval/eval/field_backed_map_impl.cc | ||
@@ -117,7 +117,9 @@ int FieldBackedMapImpl::size() const { | ||
const CelList* FieldBackedMapImpl::ListKeys() const { return key_list_.get(); } | ||
|
||
absl::optional<CelValue> FieldBackedMapImpl::operator[](CelValue key) const { | ||
-#ifdef GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
+#ifdef XXX_GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
+ static_assert(false); | ||
+ | ||
// Fast implementation. | ||
google::protobuf::MapKey inner_key; | ||
switch (key.type()) { | ||
@@ -171,7 +173,7 @@ absl::optional<CelValue> FieldBackedMapImpl::operator[](CelValue key) const { | ||
return CreateErrorValue(arena_, status.message()); | ||
} | ||
return result; | ||
-#else // GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
+#else // XXX_GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
// Slow implementation. | ||
CelValue result = CelValue::CreateNull(); | ||
CelValue inner_key = CelValue::CreateNull(); | ||
@@ -228,7 +230,7 @@ absl::optional<CelValue> FieldBackedMapImpl::operator[](CelValue key) const { | ||
} | ||
|
||
return {}; | ||
-#endif // GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
+#endif // XXX_GOOGLE_PROTOBUF_HAS_CEL_MAP_REFLECTION_FRIEND | ||
} | ||
|
||
} // namespace runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters