[llvm] [SPIRV] Fix build after change in transitive includes (PR #106140)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 13:59:23 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-spir-v

Author: Justin Bogner (bogner)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/106140.diff


1 Files Affected:

- (modified) llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp (+1) 


``````````diff
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:

``````````

</details>


https://github.com/llvm/llvm-project/pull/106140


More information about the llvm-commits mailing list