Skip to content

Commit 9a21d42

Browse files
committed
Remove unnecessary pointer bitcast
1 parent 13d65a0 commit 9a21d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2888,7 +2888,7 @@ void CodeGenModule::EmitOMPAllocateDecl(const OMPAllocateDecl *D) {
28882888

28892889
Entry->mutateType(PTy);
28902890
llvm::Constant *NewPtrForOldDecl =
2891-
llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(
2891+
llvm::ConstantExpr::getAddrSpaceCast(
28922892
Entry, DummyGV->getType());
28932893

28942894
// Now we have a casted version of the changed global, the dummy can be

0 commit comments

Comments
 (0)