Skip to content

Commit 5cb566b

Browse files
committed
Fix wild pointer issue
1 parent 3f4f20a commit 5cb566b

File tree

1 file changed

+2
-1
lines changed
  • llvm/include/llvm/LTO

1 file changed

+2
-1
lines changed

llvm/include/llvm/LTO/LTO.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ class LTO {
604604
// Diagnostic optimization remarks file
605605
LLVMRemarkFileHandle DiagnosticOutputFile;
606606

607-
const SmallVector<const char *> *BitcodeLibFuncs;
607+
const SmallVector<const char *> *BitcodeLibFuncs = &EmptyBitcodeLibFuncs;
608+
SmallVector<const char *> EmptyBitcodeLibFuncs;
608609
};
609610

610611
/// The resolution for a symbol. The linker must provide a SymbolResolution for

0 commit comments

Comments
 (0)