From 51597914293ac0080f984efcca0e702cff35605f Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Sat, 16 Mar 2019 14:06:56 +0000 Subject: Add support to assign debug instructions to optimised code --- lib/Core/Executor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Core') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 82fe2356..7a676cc3 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -597,7 +597,11 @@ void Executor::initializeGlobalObject(ExecutionState &state, ObjectState *os, for (unsigned i=0, e=cds->getNumElements(); i != e; ++i) initializeGlobalObject(state, os, cds->getElementAsConstant(i), offset + i*elementSize); +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 8) } else if (!isa(c) && !isa(c)) { +#else + } else if (!isa(c)) { +#endif unsigned StoreBits = targetData->getTypeStoreSizeInBits(c->getType()); ref C = evalConstant(c); -- cgit 1.4.1