Skip to content

Commit c0a1fcd

Browse files
committed
[llvm][IRMover] Remove no-op ptr-to-ptr bitcast (NFC)
Opaque ptr cleanup effort.
1 parent 147b38b commit c0a1fcd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Linker/IRMover.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,7 @@ IRLinker::linkAppendingVarProto(GlobalVariable *DstGV,
989989
// Replace any uses of the two global variables with uses of the new
990990
// global.
991991
if (DstGV) {
992-
RAUWWorklist.push_back(
993-
std::make_pair(DstGV, ConstantExpr::getBitCast(NG, DstGV->getType())));
992+
RAUWWorklist.push_back(std::make_pair(DstGV, NG));
994993
}
995994

996995
return Ret;

0 commit comments

Comments
 (0)