summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
-rw-r--r--view/sharedcache/core/SharedCache.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp
index f76ee1ad..9e438909 100644
--- a/view/sharedcache/core/SharedCache.cpp
+++ b/view/sharedcache/core/SharedCache.cpp
@@ -3475,7 +3475,14 @@ void SharedCache::Load(DeserializationContext& context)
m_metadataValid = true;
}
+#if defined(__GNUC__) || defined(__clang__)
__attribute__((always_inline)) void SharedCache::AssertMutable() const
+#elif defined(_MSC_VER)
+__forceinline void SharedCache::AssertMutable() const
+#else
+#error "Unsupported compiler"
+#endif
+
{
if (m_stateIsShared)
{