diff options
Diffstat (limited to 'llvm/lib/Target/DirectX/DXContainerGlobals.cpp')
-rw-r--r-- | llvm/lib/Target/DirectX/DXContainerGlobals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/DirectX/DXContainerGlobals.cpp b/llvm/lib/Target/DirectX/DXContainerGlobals.cpp index b6e8ce7..26a113d 100644 --- a/llvm/lib/Target/DirectX/DXContainerGlobals.cpp +++ b/llvm/lib/Target/DirectX/DXContainerGlobals.cpp @@ -103,7 +103,7 @@ GlobalVariable *DXContainerGlobals::computeShaderHash(Module &M) { dxbc::ShaderHash HashData = {0, {0}}; // The Hash's IncludesSource flag gets set whenever the hashed shader includes // debug information. - if (M.debug_compile_units_begin() != M.debug_compile_units_end()) + if (!M.debug_compile_units().empty()) HashData.Flags = static_cast<uint32_t>(dxbc::HashFlags::IncludesSource); memcpy(reinterpret_cast<void *>(&HashData.Digest), Result.data(), 16); |