From 928784d387e55381aa407dc168bcf422dc40a69c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 3 Aug 2009 00:32:34 +0000 Subject: Fix computation of GetElementPtr offset for 64-bit targets. - Precomputed constants were being truncated to 32-bits! - This was actually the problem with new[]/delete[], I failed to look at the generated code for new[] to realize that the compiler is generating the offset pointer, not the runtime library. - All tests now pass on x86-64! git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77930 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/ArrayNew.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test') diff --git a/test/CXX/ArrayNew.cpp b/test/CXX/ArrayNew.cpp index 3402283f..e6a41ddf 100644 --- a/test/CXX/ArrayNew.cpp +++ b/test/CXX/ArrayNew.cpp @@ -1,10 +1,5 @@ -// FIXME: KLEE's new[] and delete[] implementations are broken, they don't -// allocate space for the count. - // RUN: %llvmgxx %s --emit-llvm -O0 -c -o %t1.bc // RUN: %klee --no-output --exit-on-error --no-externals %t1.bc -// RUN: false -// XFAIL: * #include -- cgit 1.4.1