From: Chris Lattner Date: Fri, 4 Jan 2008 19:12:28 +0000 (+0000) Subject: Fix PR1897, patch by Wilhansen Li X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b2f6c4a271e450a2794aa5dd6095e230483cdf9;p=clang Fix PR1897, patch by Wilhansen Li git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45593 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 6e1683c4fc..cdcbb34a51 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -191,6 +191,7 @@ static LangKind GetLanguage(const std::string &Filename) { if (DotPos == std::string::npos) { BaseLang = langkind_c; // Default to C if no extension. + return langkind_c; } std::string Ext = std::string(Filename.begin()+DotPos+1, Filename.end());