diff --git a/src/target/llvm/codegen_hexagon.cc b/src/target/llvm/codegen_hexagon.cc index 2550fe1469f4e..7b0081869a27f 100644 --- a/src/target/llvm/codegen_hexagon.cc +++ b/src/target/llvm/codegen_hexagon.cc @@ -80,10 +80,8 @@ class CodeGenHexagon final : public CodeGenCPU { llvm::Module* GetModulePtr() const { return module_.get(); } uint64_t GetTypeSizeInBits(llvm::Type* type) const { -#if TVM_LLVM_VERSION >= 110 +#if TVM_LLVM_VERSION >= 100 return data_layout_->getTypeSizeInBits(type).getFixedSize(); -#elif TVM_LLVM_VERSION >= 100 - return data_layout_->getTypeSizeInBits(type).getFixedValue(); #else return data_layout_->getTypeSizeInBits(type); #endif