Skip to content

Commit 12bc6d9

Browse files
author
Martin Mory
committed
fix ODR violation of global LLVMZeroValueCTX and LLVMZeroValueMod
1 parent 4864dd8 commit 12bc6d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/LLVMZeroValue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Value;
3333
namespace psr {
3434

3535
// do not touch, its only purpose is to make ZeroValue working
36-
static const std::unique_ptr<llvm::LLVMContext>
36+
inline const std::unique_ptr<llvm::LLVMContext>
3737
LLVMZeroValueCTX(new llvm::LLVMContext);
38-
static const std::unique_ptr<llvm::Module>
38+
inline const std::unique_ptr<llvm::Module>
3939
LLVMZeroValueMod(new llvm::Module("zero_module", *LLVMZeroValueCTX));
4040

4141
/**

0 commit comments

Comments
 (0)