Skip to content

Commit 6e2d77a

Browse files
committed
Remove bitcast for resultPtr
1 parent 6f16f7d commit 6e2d77a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6187,10 +6187,6 @@ convertOmpGroupprivate(Operation &opInst, llvm::IRBuilderBase &builder,
61876187
resultPtr = globalValue;
61886188
}
61896189

6190-
llvm::Type *ptrTy = builder.getPtrTy();
6191-
if (resultPtr->getType() != ptrTy)
6192-
resultPtr = builder.CreateBitCast(resultPtr, ptrTy);
6193-
61946190
moduleTranslation.mapValue(opInst.getResult(0), resultPtr);
61956191
return success();
61966192
}

0 commit comments

Comments
 (0)