mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adjust emitted IR on !llvm.used.conditional to match LLVM expectations (#39715)
This commit is contained in:
committed by
GitHub
parent
ed6f701832
commit
cf5fee0a89
@@ -3720,7 +3720,10 @@ static void appendLLVMUsedConditionalEntry(IRGenModule &IGM,
|
||||
llvm::Type::getInt32Ty(IGM.Module.getContext()), 0)),
|
||||
// (3) the "edge" that holds the target alive, if it's missing the target
|
||||
// is allowed to be removed
|
||||
llvm::ConstantAsMetadata::get(dependsOn),
|
||||
llvm::MDNode::get(IGM.Module.getContext(),
|
||||
{
|
||||
llvm::ConstantAsMetadata::get(dependsOn),
|
||||
}),
|
||||
};
|
||||
auto *usedConditional =
|
||||
IGM.Module.getOrInsertNamedMetadata("llvm.used.conditional");
|
||||
|
||||
Reference in New Issue
Block a user