From 318454a8e5fce57a92573f42e39f148adcedc5d4 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 2 Aug 2022 14:23:00 -0700 Subject: [PATCH] Inline my uuid_is_null() implementation in a header file This either needs to be static, or forced inline, or in a separate source file. Given that we only have one function in this UuidCompatibility.h, I think forced inline for the handful of uses of it may be best. --- lldb/source/Utility/UuidCompatibility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Utility/UuidCompatibility.h b/lldb/source/Utility/UuidCompatibility.h index fe4aed0..40ebc1d 100644 --- a/lldb/source/Utility/UuidCompatibility.h +++ b/lldb/source/Utility/UuidCompatibility.h @@ -15,7 +15,7 @@ typedef unsigned char uuid_t[16]; // Return 1 if uuid is null, that is, all zeroes. -int uuid_is_null(uuid_t uuid) { +inline __attribute__((always_inline)) int uuid_is_null(uuid_t uuid) { for (int i = 0; i < 16; i++) if (uuid[i]) return 0; -- 2.7.4