Add reference, otherwise, it will always make LibBitcode.size() == 0 in main().
Note: the test above is in Line 252 in llvm-rs-link.cpp.
Change-Id: Idfabdb7c91f28b899c1d95908b0410e56ed13cbb
diff --git a/llvm-rs-link.cpp b/llvm-rs-link.cpp
index fed8b80..1e37593 100644
--- a/llvm-rs-link.cpp
+++ b/llvm-rs-link.cpp
@@ -141,7 +141,7 @@
static bool PreloadLibraries(bool NoStdLib,
const std::vector<std::string> &AdditionalLibs,
- std::list<MemoryBuffer *> LibBitcode) {
+ std::list<MemoryBuffer *> &LibBitcode) {
MemoryBuffer *MB;
LibBitcode.clear();