summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-05-10 20:28:44 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-05-10 20:28:44 +0000
commit30b015f044cd0157b68f5737321f685741c17423 (patch)
treec57801bb0b89c07dc181252b01d3b1d50a193199 /unittests
parent0a3c6b4fcc83c9bc27823de65bd6c0915cebbda0 (diff)
downloadllvm-30b015f044cd0157b68f5737321f685741c17423.tar.gz
llvm-30b015f044cd0157b68f5737321f685741c17423.tar.bz2
llvm-30b015f044cd0157b68f5737321f685741c17423.tar.xz
Fixing MCJIT unit test on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_33@181625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp b/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
index d8cf6c592d..07ea1afe1a 100644
--- a/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
+++ b/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
@@ -48,6 +48,8 @@ TEST_F(MCJITCAPITest, simple_function) {
// Creates a function that returns 42, compiles it, and runs it.
LLVMModuleRef module = LLVMModuleCreateWithName("simple_module");
+
+ LLVMSetTarget(module, HostTriple.c_str());
LLVMValueRef function = LLVMAddFunction(
module, "simple_function", LLVMFunctionType(LLVMInt32Type(), 0, 0, 0));