[cfe-commits] r45593 - /cfe/trunk/Driver/clang.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 4 11:12:28 PST 2008
Author: lattner
Date: Fri Jan 4 13:12:28 2008
New Revision: 45593
URL: http://llvm.org/viewvc/llvm-project?rev=45593&view=rev
Log:
Fix PR1897, patch by Wilhansen Li
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=45593&r1=45592&r2=45593&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Fri Jan 4 13:12:28 2008
@@ -191,6 +191,7 @@
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());
More information about the cfe-commits
mailing list