Fix wrong type for llvm::loadop (#293)

This commit is contained in:
Tung D. Le 2020-09-04 23:29:00 +09:00 committed by GitHub
parent 9f69b2f317
commit c738e0fb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ private:
auto memRefTy = memRefPtrTy.getPointerElementTy();
auto int64Ty = LLVM::LLVMType::getInt64Ty(context);
Value memRef = rewriter.create<LLVM::LoadOp>(loc, memRefPtrTy, ptrToMemRef);
Value memRef = rewriter.create<LLVM::LoadOp>(loc, memRefTy, ptrToMemRef);
// Set dataPtr and alignedDataPtr;
auto dataPtr =