revert r147542 after comments from Joerg Sonnenberger
[oota-llvm.git] / lib / Support / TargetRegistry.cpp
index 7497bfe035c66b69eaccf6574597ac5da70f89de..53c8d84e7d45882c548863becfe17ffef61d8c7a 100644 (file)
@@ -84,7 +84,7 @@ void TargetRegistry::RegisterTarget(Target &T,
 }
 
 const Target *TargetRegistry::getClosestTargetForJIT(std::string &Error) {
-  const Target *TheTarget = lookupTarget(sys::getHostTriple(), Error);
+  const Target *TheTarget = lookupTarget(sys::getDefaultTargetTriple(), Error);
 
   if (TheTarget && !TheTarget->hasJIT()) {
     Error = "No JIT compatible target available for this host";