mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
[ThinLTO] Fix lazy-loading of MDString instruction attachments
CFI is using intrinsics that takes MDString as arguments, and this was broken during lazy-loading of metadata. Differential Revision: https://reviews.llvm.org/D28916 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -512,7 +512,7 @@ private:
|
||||
}
|
||||
|
||||
Metadata *getFnMetadataByID(unsigned ID) {
|
||||
return MDLoader->getMetadataFwdRef(ID);
|
||||
return MDLoader->getMetadataFwdRefOrLoad(ID);
|
||||
}
|
||||
|
||||
BasicBlock *getBasicBlock(unsigned ID) const {
|
||||
|
||||
Reference in New Issue
Block a user