Skip to content

Commit 318454a

Browse files
committed
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.
1 parent 59c6f41 commit 318454a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Utility/UuidCompatibility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
typedef unsigned char uuid_t[16];
1616

1717
// Return 1 if uuid is null, that is, all zeroes.
18-
int uuid_is_null(uuid_t uuid) {
18+
inline __attribute__((always_inline)) int uuid_is_null(uuid_t uuid) {
1919
for (int i = 0; i < 16; i++)
2020
if (uuid[i])
2121
return 0;

0 commit comments

Comments
 (0)