Skip to content

Commit 32ed4a5

Browse files
Skip PROTOBUF_ALWAYS_INLINE_CALL when hexagon is defined.
PiperOrigin-RevId: 890009970
1 parent 741bc7b commit 32ed4a5

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/google/protobuf/parse_context.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,12 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
391391

392392
if (!peek_func(absl::string_view(ptr, round_down_size))) return nullptr;
393393
ptr += round_down_size;
394-
#if !defined(__APPLE__)
395-
// Working around clang issue on Apple.
394+
// TODO: b/496023113 - Remove hexagon once hexagon-clang handles it
395+
// properly.
396+
#if !defined(__APPLE__) && !defined(__hexagon__)
397+
// Working around clang issue on Apple and Hexagon.
396398
PROTOBUF_ALWAYS_INLINE_CALL
397-
#endif // !__APPLE__
399+
#endif // !__APPLE__ && !__hexagon__
398400
sink.Flush(ptr);
399401
size -= round_down_size;
400402

@@ -420,10 +422,12 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
420422

421423
absl::string_view view(ptr, static_cast<size_t>(append_size));
422424
if (!peek_func(view)) return nullptr;
423-
#if !defined(__APPLE__)
424-
// Working around clang issue on Apple.
425+
// TODO: b/496023113 - Remove hexagon once hexagon-clang handles it
426+
// properly.
427+
#if !defined(__APPLE__) && !defined(__hexagon__)
428+
// Working around clang issue on Apple and Hexagon.
425429
PROTOBUF_ALWAYS_INLINE_CALL
426-
#endif // !__APPLE__
430+
#endif // !__APPLE__ && !__hexagon__
427431
sink.Append(view);
428432

429433
ptr += append_size;

0 commit comments

Comments
 (0)