From c86988637c411a80556e26e07037dc6dcfade4d3 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 18 Mar 2013 13:15:46 +0000 Subject: Patch and test case by Jiri Slaby to handle "initializing globals when a global has an undef fill of holes inside structures." git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@177285 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/Executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Core') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 3f90c426..fa5835d3 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -361,7 +361,7 @@ void Executor::initializeGlobalObject(ExecutionState &state, ObjectState *os, initializeGlobalObject(state, os, cds->getElementAsConstant(i), offset + i*elementSize); #endif - } else { + } else if (!isa(c)) { unsigned StoreBits = targetData->getTypeStoreSizeInBits(c->getType()); ref C = evalConstant(c); -- cgit 1.4.1