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

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 13:58:48 PDT 2024


https://github.com/bogner created https://github.com/llvm/llvm-project/pull/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.

>From 25c0c8dadbddf4e9cd3c47779939b39489ba0250 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Mon, 26 Aug 2024 13:55:05 -0700
Subject: [PATCH] [SPIRV] Fix build after change in transitive includes

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.
---
 llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp | 1 +
 1 file changed, 1 insertion(+)

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