[NFC] Fix incorrect use of UNREFERENCED_PARAMETER macro (#6806)

In CalcResTypeSize function, UNREFERENCED_PARAMETER macro is used with a
parameter which is referenced in return statement. That macro was added
in
    6ee4074a4b but it was not removed when
"DxilModule &M" was referenced in
86073a3b0b
    
This fixes the following compiler error with clang 18.1.8 with mingw-w64
toolchain.
    
DxilContainerReflection.cpp:1512:3: error: object of type 'DxilModule'
cannot be assigned because its copy assignment operator is implicitly
deleted
     1512 |   UNREFERENCED_PARAMETER(M);
          |   ^
    winnt.h:1387:40: note: expanded from macro 'UNREFERENCED_PARAMETER'
     1387 | #define UNREFERENCED_PARAMETER(P) {(P) = (P);}
          |                                        ^
This commit is contained in:
Biswapriyo Nath 2024-07-20 00:29:20 +05:30 коммит произвёл GitHub
Родитель c01b4f4c96
Коммит 5cb6faaf1b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -1509,7 +1509,6 @@ void CShaderReflectionConstantBuffer::Initialize(
}
static unsigned CalcResTypeSize(DxilModule &M, DxilResource &R) {
UNREFERENCED_PARAMETER(M);
Type *Ty = R.GetHLSLType()->getPointerElementType();
if (R.IsStructuredBuffer()) {
Ty = dxilutil::StripArrayTypes(Ty);