[llvm] aa34a9d - Add TargetExtTyID to switch statements in Hexagon and DXIL backend code.
Joshua Cranmer via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 08:49:39 PST 2022
Author: Joshua Cranmer
Date: 2022-12-20T11:48:35-05:00
New Revision: aa34a9d108bd79eb0ac40979a7bdae4b19b1624d
URL: https://github.com/llvm/llvm-project/commit/aa34a9d108bd79eb0ac40979a7bdae4b19b1624d
DIFF: https://github.com/llvm/llvm-project/commit/aa34a9d108bd79eb0ac40979a7bdae4b19b1624d.diff
LOG: Add TargetExtTyID to switch statements in Hexagon and DXIL backend code.
Added:
Modified:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index 0b15937e1a8a4..dcb8ebaa38c69 100644
--- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -1070,6 +1070,7 @@ void DXILBitcodeWriter::writeTypeTable() {
case Type::BFloatTyID:
case Type::X86_AMXTyID:
case Type::TokenTyID:
+ case Type::TargetExtTyID:
llvm_unreachable("These should never be used!!!");
break;
case Type::VoidTyID:
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
index aad3103ba275f..8355de4cfe966 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
@@ -333,6 +333,7 @@ unsigned HexagonTargetObjectFile::getSmallestAddressableSize(const Type *Ty,
case Type::X86_AMXTyID:
case Type::TokenTyID:
case Type::TypedPointerTyID:
+ case Type::TargetExtTyID:
return 0;
}
More information about the llvm-commits
mailing list