summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2015-01-27 21:33:25 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2015-01-27 21:33:25 +0000
commitf2107249da2c18411f6c2e9a7ce39db7d999b453 (patch)
treeccf21a13487e939faa601ee6598ac402c7b5df50 /llvm
parent9a50944ca0e54710009831237f03b4309dfad373 (diff)
downloadbcm5719-llvm-f2107249da2c18411f6c2e9a7ce39db7d999b453.tar.gz
bcm5719-llvm-f2107249da2c18411f6c2e9a7ce39db7d999b453.zip
[ExecutionEngine] Fix r227228 tests on Windows
On Windows, we're running MCJIT with ELF, so the module needs to have its Triple explicitly adjusted. llvm-svn: 227247
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
index b1943a763d6..c09c2724881 100644
--- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud