Skip to content

Commit 5a1b0f8

Browse files
committed
Fix call to collectUsedGlobalVariables
LLVM commit 3adb89b updated the API of this function to take a reference to a `SmallVectorImpl` instead of a set to ensure that it behaves deterministically.
1 parent e29e1f4 commit 5a1b0f8

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)