From c32ab5d61e48b242c1e18177b09d8ea914ec8082 Mon Sep 17 00:00:00 2001 From: "Lu, John" Date: Tue, 13 Feb 2024 13:59:36 -0800 Subject: [PATCH] Use map since it affects output order Signed-off-by: Lu, John --- lib/SPIRV/OCLTypeToSPIRV.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SPIRV/OCLTypeToSPIRV.h b/lib/SPIRV/OCLTypeToSPIRV.h index 2ee77a954d..23fd5c64dc 100644 --- a/lib/SPIRV/OCLTypeToSPIRV.h +++ b/lib/SPIRV/OCLTypeToSPIRV.h @@ -68,7 +68,7 @@ class OCLTypeToSPIRVBase : protected BuiltinCallHelper { llvm::Module *M; llvm::LLVMContext *Ctx; // Map of argument/Function -> adapted type (probably TypedPointerType) - std::unordered_map AdaptedTy; + std::map AdaptedTy; std::set WorkSet; // Functions to be adapted void adaptFunctionArguments(llvm::Function *F);