From fb04c23aebc03ef3ec26258eaeaa599fb5a255cd Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Tue, 27 Jan 2015 21:33:25 +0000 Subject: [PATCH] [ExecutionEngine] Fix r227228 tests on Windows On Windows, we're running MCJIT with ELF, so the module needs to have its Triple explicitly adjusted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227247 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ExecutionEngine/MCJIT/MCJITTestBase.h | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h index b1943a763d6..c09c2724881 100644 --- a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h +++ b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h @@ -344,6 +344,7 @@ protected: void createJITFromAssembly(const char *Test) { SMDiagnostic Error; M = parseAssemblyString(Test, Error, Context); + M->setTargetTriple(Triple::normalize(BuilderTriple)); std::string errMsg; raw_string_ostream os(errMsg);