LLVM 4.0: Merge r292641 "[ThinLTO] Fix lazy-loading of MDString instruction attachments"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@292760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mehdi Amini
2017-01-22 19:37:24 +00:00
parent e2158a6eb9
commit 56651b3bc7
4 changed files with 26 additions and 9 deletions

View File

@@ -512,7 +512,7 @@ private:
}
Metadata *getFnMetadataByID(unsigned ID) {
return MDLoader->getMetadataFwdRef(ID);
return MDLoader->getMetadataFwdRefOrLoad(ID);
}
BasicBlock *getBasicBlock(unsigned ID) const {