diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-06 15:52:58 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-06 15:52:58 +0000 |
commit | 9f4a1da9a0a56a0b0a7f8249f34b3cdea6179c41 (patch) | |
tree | 0dd020f28a4846707f8d60717d9b2921ea187bd8 /unittests/ExecutionEngine/JIT/JITTest.cpp | |
parent | b5efedaf2ab20d844d5a21cdef76b55acbf4f01c (diff) |
Notes
Diffstat (limited to 'unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index b85f724353c3..8f0582d3e8de 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -701,9 +701,7 @@ ExecutionEngine *getJITFromBitcode( LLVMContext &Context, const std::string &Bitcode, Module *&M) { // c_str() is null-terminated like MemoryBuffer::getMemBuffer requires. MemoryBuffer *BitcodeBuffer = - MemoryBuffer::getMemBuffer(Bitcode.c_str(), - Bitcode.c_str() + Bitcode.size(), - "Bitcode for test"); + MemoryBuffer::getMemBuffer(Bitcode, "Bitcode for test"); std::string errMsg; M = getLazyBitcodeModule(BitcodeBuffer, Context, &errMsg); if (M == NULL) { |