forked from OSchip/llvm-project
[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:
parent
9a50944ca0
commit
f2107249da
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue