diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2017-07-25 11:50:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 11:50:24 +0100 |
commit | 7b53061d746e39a04b1a2d79dcced3f4b5f74fdb (patch) | |
tree | ed92b7f7f558e2f7fadaa5c3f2145453d66d874c /lib/Module | |
parent | d40f29066ab9d5cb998a3bb38d2082a231c50d60 (diff) | |
parent | c77b0052785a7ead9cb80a37a53de2229e2f0726 (diff) | |
download | klee-7b53061d746e39a04b1a2d79dcced3f4b5f74fdb.tar.gz |
Merge pull request #725 from ccadar/fold
Refactored some code related to constant evaluation
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/KModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 19408d65..751776b9 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -104,7 +104,7 @@ KModule::~KModule() { ie = functions.end(); it != ie; ++it) delete *it; - for (std::map<llvm::Constant*, KConstant*>::iterator it=constantMap.begin(), + for (std::map<const llvm::Constant*, KConstant*>::iterator it=constantMap.begin(), itE=constantMap.end(); it!=itE;++it) delete it->second; @@ -415,8 +415,8 @@ void KModule::prepare(const Interpreter::ModuleOptions &opts, } } -KConstant* KModule::getKConstant(Constant *c) { - std::map<llvm::Constant*, KConstant*>::iterator it = constantMap.find(c); +KConstant* KModule::getKConstant(const Constant *c) { + std::map<const llvm::Constant*, KConstant*>::iterator it = constantMap.find(c); if (it != constantMap.end()) return it->second; return NULL; |