1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[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
This commit is contained in:
Keno Fischer 2015-01-27 21:33:25 +00:00
parent 86e8129f3c
commit 04e2abc428

View File

@ -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);