swr/rast: Fix one more invalid object format for windows.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
George Kyriazis 2018-01-19 15:46:56 -06:00
parent 61a790409e
commit 70f8eac603

View File

@ -178,7 +178,7 @@ void JitManager::SetupNewModule()
#if defined(_WIN32)
// Needed for MCJIT on windows
Triple hostTriple(sys::getProcessTriple());
hostTriple.setObjectFormat(Triple::ELF);
hostTriple.setObjectFormat(Triple::COFF);
newModule->setTargetTriple(hostTriple.getTriple());
#endif // _WIN32