changkaiyan opened a new issue #7713:
URL: https://github.com/apache/tvm/issues/7713


   When I compile tvm source code, an error occurs. I try to fix it by removing 
a reduntant 'MaybeAlign'.
   In tvm/src/target/llvm/codegen_nvptx.cc and 
tvm/src/target/llvm/codegen_amdgpu.cc, please change 
llvm::MaybeAlign::MaybeAlign() to llvm::MaybeAlign()
   ---------------------------------
   /mnt/d/tvm/src/target/llvm/codegen_nvptx.cc: In member function ‘virtual 
llvm::Value* tvm::codegen::CodeGenNVPTX::CreateIntrinsic(const 
tvm::tir::CallNode*)’:
   /mnt/d/tvm/src/target/llvm/codegen_nvptx.cc:243:69: error: cannot call 
constructor ‘llvm::MaybeAlign::MaybeAlign’ directly [-fpermissive]
     243 |                                        
llvm::MaybeAlign::MaybeAlign(),
         |                                                                     ^
   /mnt/d/tvm/src/target/llvm/codegen_nvptx.cc:243:69: note: for a 
function-style cast, remove the redundant ‘::MaybeAlign ’
   --------------------------------
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to