[llvm] [DXIL] Remove extraneous include from DXILABI.h (PR #100620)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 11:02:17 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-directx
@llvm/pr-subscribers-hlsl
Author: Justin Bogner (bogner)
<details>
<summary>Changes</summary>
I'm not sure how an include of StringSwitch got here, but it isn't needed.
---
Full diff: https://github.com/llvm/llvm-project/pull/100620.diff
2 Files Affected:
- (modified) llvm/include/llvm/Frontend/HLSL/HLSLResource.h (+1)
- (modified) llvm/include/llvm/Support/DXILABI.h (+1-1)
``````````diff
diff --git a/llvm/include/llvm/Frontend/HLSL/HLSLResource.h b/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
index 4ed742b4129a2..989893bcaccec 100644
--- a/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
+++ b/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
@@ -13,6 +13,7 @@
#ifndef LLVM_FRONTEND_HLSL_HLSLRESOURCE_H
#define LLVM_FRONTEND_HLSL_HLSLRESOURCE_H
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DXILABI.h"
namespace llvm {
diff --git a/llvm/include/llvm/Support/DXILABI.h b/llvm/include/llvm/Support/DXILABI.h
index d0bed4d5cf383..a2222eec09ba8 100644
--- a/llvm/include/llvm/Support/DXILABI.h
+++ b/llvm/include/llvm/Support/DXILABI.h
@@ -17,7 +17,7 @@
#ifndef LLVM_SUPPORT_DXILABI_H
#define LLVM_SUPPORT_DXILABI_H
-#include "llvm/ADT/StringSwitch.h"
+#include <cstdint>
namespace llvm {
namespace dxil {
``````````
</details>
https://github.com/llvm/llvm-project/pull/100620
More information about the llvm-commits
mailing list