From 83274c7e3b3ac384ee47be37733dbb19ce6b9ab2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 29 Nov 2024 17:05:16 +1000 Subject: [PATCH] ThirdParty/SmallVector: Compile fixes --- src/common/thirdparty/SmallVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/thirdparty/SmallVector.h b/src/common/thirdparty/SmallVector.h index ad831b0e9..bda7105b0 100644 --- a/src/common/thirdparty/SmallVector.h +++ b/src/common/thirdparty/SmallVector.h @@ -183,7 +183,7 @@ protected: /// NewSize. bool isSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { // Past the end. - if (LLVM_LIKELY(!isReferenceToStorage(Elt))) + if (!isReferenceToStorage(Elt)) [[likely]] return true; // Return false if Elt will be destroyed by shrinking. @@ -946,7 +946,7 @@ public: } template reference emplace_back(ArgTypes &&... Args) { - if (LLVM_UNLIKELY(this->size() >= this->capacity())) + if (this->size() >= this->capacity()) [[unlikely]] return this->growAndEmplaceBack(std::forward(Args)...); ::new ((void *)this->end()) T(std::forward(Args)...);