diff options
Diffstat (limited to 'llvm/lib/Frontend/HLSL/HLSLResource.cpp')
-rw-r--r-- | llvm/lib/Frontend/HLSL/HLSLResource.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Frontend/HLSL/HLSLResource.cpp b/llvm/lib/Frontend/HLSL/HLSLResource.cpp index 59f730d..a3a7d0b 100644 --- a/llvm/lib/Frontend/HLSL/HLSLResource.cpp +++ b/llvm/lib/Frontend/HLSL/HLSLResource.cpp @@ -27,10 +27,11 @@ StringRef FrontendResource::getSourceType() { return cast<MDString>(Entry->getOperand(1))->getString(); } -uint32_t FrontendResource::FrontendResource::getResourceKind() { - return cast<ConstantInt>( - cast<ConstantAsMetadata>(Entry->getOperand(2))->getValue()) - ->getLimitedValue(); +ResourceKind FrontendResource::getResourceKind() { + return static_cast<ResourceKind>( + cast<ConstantInt>( + cast<ConstantAsMetadata>(Entry->getOperand(2))->getValue()) + ->getLimitedValue()); } uint32_t FrontendResource::getResourceIndex() { return cast<ConstantInt>( |