aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp b/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
index c83ed16f0272..8355de4cfe96 100644
--- a/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
@@ -332,7 +332,8 @@ unsigned HexagonTargetObjectFile::getSmallestAddressableSize(const Type *Ty,
case Type::X86_MMXTyID:
case Type::X86_AMXTyID:
case Type::TokenTyID:
- case Type::DXILPointerTyID:
+ case Type::TypedPointerTyID:
+ case Type::TargetExtTyID:
return 0;
}
@@ -430,7 +431,7 @@ MCSection *HexagonTargetObjectFile::selectSmallSectionForGlobal(
const Function *
HexagonTargetObjectFile::getLutUsedFunction(const GlobalObject *GO) const {
const Function *ReturnFn = nullptr;
- for (auto U : GO->users()) {
+ for (const auto *U : GO->users()) {
// validate each instance of user to be a live function.
auto *I = dyn_cast<Instruction>(U);
if (!I)