if the driver decides to run clang on a .s file, treat it as a .S file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67532 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 160c252..2ae1b6e 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -322,7 +322,9 @@
// assembler: .S
if (Ext == "c")
return langkind_c;
- else if (Ext == "S")
+ else if (Ext == "S" ||
+ // If the compiler is run on a .s file, preprocess it as .S
+ Ext == "s")
return langkind_asm_cpp;
else if (Ext == "i")
return langkind_c_cpp;