Fix an encoding bug.
[oota-llvm.git] / lib / CompilerDriver / Tool.cpp
index e704dd9544ffc460002702ded5273fd0dcea472c..9f4ab4956627afd5cfd3ba173105b917e7ec30a6 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/CompilerDriver/BuiltinOptions.h"
 #include "llvm/CompilerDriver/Tool.h"
 
+#include "llvm/ADT/StringExtras.h"
 #include "llvm/System/Path.h"
 
 using namespace llvm;
@@ -50,7 +51,7 @@ sys::Path Tool::OutFilename(const sys::Path& In,
   sys::Path Out;
 
   if (StopCompilation) {
-    if (!OutputFilename.empty() && SaveTemps != SaveTempsEnum::Obj ) {
+    if (!OutputFilename.empty()) {
       Out.set(OutputFilename);
     }
     else if (IsJoin()) {