From 1f1649fb68e953bf679bca663db6fc3c008b08e5 Mon Sep 17 00:00:00 2001 From: Tex Riddell Date: Mon, 5 Feb 2024 20:24:12 -0800 Subject: [PATCH] Make RuntimeDataFunctionInfo_Reader::GetFeatureFlags const --- include/dxc/DxilContainer/RDAT_LibraryTypes.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dxc/DxilContainer/RDAT_LibraryTypes.inl b/include/dxc/DxilContainer/RDAT_LibraryTypes.inl index 1c9bde972b..46bd4ad88e 100644 --- a/include/dxc/DxilContainer/RDAT_LibraryTypes.inl +++ b/include/dxc/DxilContainer/RDAT_LibraryTypes.inl @@ -154,10 +154,10 @@ RDAT_STRUCT_TABLE(RuntimeDataFunctionInfo, FunctionTable) #if DEF_RDAT_TYPES == DEF_RDAT_READER_DECL // uint64_t GetFeatureFlags() convenience method - uint64_t GetFeatureFlags(); + uint64_t GetFeatureFlags() const; #elif DEF_RDAT_TYPES == DEF_RDAT_READER_IMPL // uint64_t GetFeatureFlags() convenience method - uint64_t RuntimeDataFunctionInfo_Reader::GetFeatureFlags() { + uint64_t RuntimeDataFunctionInfo_Reader::GetFeatureFlags() const { return asRecord() ? (((uint64_t)asRecord()->FeatureInfo2 << 32) | (uint64_t)asRecord()->FeatureInfo1) : 0;