diff options
| author | Keno Fischer <kfischer@college.harvard.edu> | 2015-01-27 21:33:25 +0000 |
|---|---|---|
| committer | Keno Fischer <kfischer@college.harvard.edu> | 2015-01-27 21:33:25 +0000 |
| commit | f2107249da2c18411f6c2e9a7ce39db7d999b453 (patch) | |
| tree | ccf21a13487e939faa601ee6598ac402c7b5df50 /llvm | |
| parent | 9a50944ca0e54710009831237f03b4309dfad373 (diff) | |
| download | bcm5719-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.h | 1 |
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); |

