[llvm] 70ffcfe - [SPIRV] Fix build after change in transitive includes (#106140)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 14:01:19 PDT 2024


Author: Justin Bogner
Date: 2024-08-26T14:01:15-07:00
New Revision: 70ffcfe94a60ad4b2d9ae9a27d199119c7ce6a9f

URL: https://github.com/llvm/llvm-project/commit/70ffcfe94a60ad4b2d9ae9a27d199119c7ce6a9f
DIFF: https://github.com/llvm/llvm-project/commit/70ffcfe94a60ad4b2d9ae9a27d199119c7ce6a9f.diff

LOG: [SPIRV] Fix build after change in transitive includes (#106140)

An unordered_set include was removed from a header in 04ebd1907c05
"[MC][NFC] Statically allocate storage for decoded pseudo probes and
function records (#102789)", but SPIRVEmitIntrinsics was getting the
definition from that transitive include. Fix the build by including the
header explicitly.

Added: 
    

Modified: 
    llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
index d9864ab50ecfe3..4175f766ac69ad 100644
--- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -24,6 +24,7 @@
 #include "llvm/IR/TypedPointerType.h"
 
 #include <queue>
+#include <unordered_set>
 
 // This pass performs the following transformation on LLVM IR level required
 // for the following translation to SPIR-V:


        


More information about the llvm-commits mailing list