]> granicus.if.org Git - llvm/commitdiff
Merging r243639:
authorHans Wennborg <hans@hanshq.net>
Tue, 4 Aug 2015 00:44:24 +0000 (00:44 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 4 Aug 2015 00:44:24 +0000 (00:44 +0000)
------------------------------------------------------------------------
r243639 | chapuni | 2015-07-30 06:06:53 -0700 (Thu, 30 Jul 2015) | 1 line

MCJITTests/MCJITCAPITest.cpp: Try to appease i686-win32.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@243928 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp

index 30561b7d49c85253367511faa1979ddf75995ad3..9d768d97f389828f5495a1d241bf258c6f13696f 100644 (file)
@@ -496,6 +496,7 @@ TEST_F(MCJITCAPITest, addGlobalMapping) {
   SKIP_UNSUPPORTED_PLATFORM;
 
   Module = LLVMModuleCreateWithName("testModule");
+  LLVMSetTarget(Module, HostTriple.c_str());
   LLVMTypeRef FunctionType = LLVMFunctionType(LLVMInt32Type(), NULL, 0, 0);
   LLVMValueRef MappedFn = LLVMAddFunction(Module, "mapped_fn", FunctionType);