Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Update IRMover.cpp #30

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Linker/IRMover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ Value *IRLinker::materialize(Value *V, bool ForAlias) {
// different, it means that the value already had a definition in the
// destination module (linkonce for instance), but we need a new definition
// for the alias ("New" will be different.
if (ForAlias && ValueMap.lookup(SGV) == New)
if (ForAlias && ValueMap.lookup(SGV) == New) // Is this correct to handle all cases? What about AliasValueMap?
return New;

if (ForAlias || shouldLink(New, *SGV))
Expand Down