Skip to content

Commit 288e44e

Browse files
authored
Merge pull request #423 from secure-software-engineering/f-FixZeroValueODR
fix ODR violation of global LLVMZeroValueCTX and LLVMZeroValueMod
2 parents 70de37c + 12bc6d9 commit 288e44e

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)