[llvm] r243639 - MCJITTests/MCJITCAPITest.cpp: Try to appease i686-win32.

NAKAMURA Takumi geek4civic at gmail.com
Thu Jul 30 06:06:53 PDT 2015


Author: chapuni
Date: Thu Jul 30 08:06:53 2015
New Revision: 243639

URL: http://llvm.org/viewvc/llvm-project?rev=243639&view=rev
Log:
MCJITTests/MCJITCAPITest.cpp: Try to appease i686-win32.

Modified:
    llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp?rev=243639&r1=243638&r2=243639&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp Thu Jul 30 08:06:53 2015
@@ -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);
 





More information about the llvm-commits mailing list