aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenTBAA.cpp
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2020-04-17 09:43:55 -0700
committerSterling Augustine <saugustine@google.com>2020-04-17 10:29:40 -0700
commita4b88c044980337bb14390be654fe76864aa60ec (patch)
tree2b6023a8ce318f137eb7d56390da08d7509bf63b /clang/lib/CodeGen/CodeGenTBAA.cpp
parent5793c84925fa98f00dbc57f476448babc5ee3aaa (diff)
downloadllvm-a4b88c044980337bb14390be654fe76864aa60ec.zip
llvm-a4b88c044980337bb14390be654fe76864aa60ec.tar.gz
llvm-a4b88c044980337bb14390be654fe76864aa60ec.tar.bz2
Revert "Implement _ExtInt as an extended int type specifier."
This reverts commit 61ba1481e200b5b35baa81ffcff81acb678e8508. I'm reverting this because it breaks the lldb build with incomplete switch coverage warnings. I would fix it forward, but am not familiar enough with lldb to determine the correct fix. lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:3958:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) { ^ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4633:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) { ^ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4889:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) {
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp
index f4ebe68..8cc8c16 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.cpp
+++ b/clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -209,15 +209,6 @@ llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) {
return createScalarTypeNode(OutName, getChar(), Size);
}
- if (const auto *EIT = dyn_cast<ExtIntType>(Ty)) {
- SmallString<256> OutName;
- llvm::raw_svector_ostream Out(OutName);
- // Don't specify signed/unsigned since integer types can alias despite sign
- // differences.
- Out << "_ExtInt(" << EIT->getNumBits() << ')';
- return createScalarTypeNode(OutName, getChar(), Size);
- }
-
// For now, handle any other kind of type conservatively.
return getChar();
}