aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorJoshua Cranmer <joshua.cranmer@intel.com>2022-08-04 10:41:11 -0400
committerJoshua Cranmer <joshua.cranmer@intel.com>2022-08-04 10:41:11 -0400
commit2138c906458ed37f0f833b1c7dda1bc6c6be8236 (patch)
tree5a88fe58c8c46ff1724369d1ea3ddcc6094b4bd1 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent448adfee05b737a26dda34e7ae2cd4948760fff0 (diff)
downloadllvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.zip
llvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.tar.gz
llvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.tar.bz2
[IR] Move support for dxil::TypedPointerType to LLVM core IR.
This allows the construct to be shared between different backends. However, it still remains illegal to use TypedPointerType in LLVM IR--the type is intended to remain an auxiliary type, not a real LLVM type. So no support is provided for LLVM-C, nor bitcode, nor LLVM assembly (besides the bare minimum needed to make Type->dump() work properly). Reviewed By: beanz, nikic, aeubanks Differential Revision: https://reviews.llvm.org/D130592
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index d7e012f..eda4ac7 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -1029,8 +1029,8 @@ void ModuleBitcodeWriter::writeTypeTable() {
TypeVals.push_back(true);
break;
}
- case Type::DXILPointerTyID:
- llvm_unreachable("DXIL pointers cannot be added to IR modules");
+ case Type::TypedPointerTyID:
+ llvm_unreachable("Typed pointers cannot be added to IR modules");
}
// Emit the finished record.