Skip to content

Commit acb1037

Browse files
authored
Merge pull request #38132 from etcwilde/ewilde/swift-next/missing-collectUsedGlobalVariables
[Swift Next] Fix call to `collectUsedGlobalVariables`
2 parents 29f3d68 + 1ef8e99 commit acb1037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static void embedBitcode(llvm::Module *M, const IRGenOptions &Opts)
824824

825825
// Save llvm.compiler.used and remove it.
826826
SmallVector<llvm::Constant*, 2> UsedArray;
827-
SmallSet<llvm::GlobalValue*, 4> UsedGlobals;
827+
SmallVector<llvm::GlobalValue*, 4> UsedGlobals;
828828
auto *UsedElementType =
829829
llvm::Type::getInt8Ty(M->getContext())->getPointerTo(0);
830830
llvm::GlobalVariable *Used =

0 commit comments

Comments
 (0)