Skip to content

Commit 7831a79

Browse files
authored
[Hexagon] Fix deprecated call for data layout size in bits (#14438)
Fix deprecated call for data layout size in bits
1 parent 70399da commit 7831a79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/target/llvm/codegen_hexagon.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ class CodeGenHexagon final : public CodeGenCPU {
8585
llvm::Module* GetModulePtr() const { return module_.get(); }
8686

8787
uint64_t GetTypeSizeInBits(llvm::Type* type) const {
88-
#if TVM_LLVM_VERSION >= 100
88+
#if TVM_LLVM_VERSION >= 160
89+
return data_layout_->getTypeSizeInBits(type).getFixedValue();
90+
#elif TVM_LLVM_VERSION >= 100
8991
return data_layout_->getTypeSizeInBits(type).getFixedSize();
9092
#else
9193
return data_layout_->getTypeSizeInBits(type);

0 commit comments

Comments
 (0)