We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a3165 commit b3529edCopy full SHA for b3529ed
llvm/lib/Linker/IRMover.cpp
@@ -969,8 +969,6 @@ IRLinker::linkAppendingVarProto(GlobalVariable *DstGV,
969
NG->copyAttributesFrom(SrcGV);
970
forceRenaming(NG, SrcGV->getName());
971
972
- Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType()));
973
-
974
Mapper.scheduleMapAppendingVariable(
975
*NG,
976
(DstGV && !DstGV->isDeclaration()) ? DstGV->getInitializer() : nullptr,
@@ -982,7 +980,7 @@ IRLinker::linkAppendingVarProto(GlobalVariable *DstGV,
982
980
RAUWWorklist.push_back(std::make_pair(DstGV, NG));
983
981
}
984
985
- return Ret;
+ return NG;
986
987
988
bool IRLinker::shouldLink(GlobalValue *DGV, GlobalValue &SGV) {
0 commit comments