Skip to content

Commit 2b153a3

Browse files
committed
[HLSL] replace std::unordered_map with DenseMap
Broke some builds because of a missing include. Changing to a DenseMap and adding the missing include.
1 parent c2445d9 commit 2b153a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "clang/AST/Type.h"
2828
#include "clang/Basic/TargetOptions.h"
2929
#include "clang/Frontend/FrontendDiagnostic.h"
30+
#include "llvm/ADT/DenseMap.h"
3031
#include "llvm/ADT/ScopeExit.h"
3132
#include "llvm/ADT/SmallString.h"
3233
#include "llvm/ADT/SmallVector.h"
@@ -905,7 +906,7 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
905906
OB.emplace_back("convergencectrl", bundleArgs);
906907
}
907908

908-
std::unordered_map<const DeclaratorDecl *, llvm::Value *> OutputSemantic;
909+
llvm::DenseMap<const DeclaratorDecl *, llvm::Value *> OutputSemantic;
909910

910911
unsigned SRetOffset = 0;
911912
for (const auto &Param : Fn->args()) {

0 commit comments

Comments
 (0)