[clang-tools-extra] r196863 - Fix assertion error.

John Thompson John.Thompson.JTSoftware at gmail.com
Mon Dec 9 18:26:44 PST 2013


Author: jtsoftware
Date: Mon Dec  9 20:26:44 2013
New Revision: 196863

URL: http://llvm.org/viewvc/llvm-project?rev=196863&view=rev
Log:
Fix assertion error.

Modified:
    clang-tools-extra/trunk/modularize/Modularize.cpp

Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=196863&r1=196862&r2=196863&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Mon Dec  9 20:26:44 2013
@@ -715,7 +715,7 @@ int main(int Argc, const char **Argv) {
   }
 
   // If we are in assistant mode, output the module map and quit.
-  if (ModuleMapPath[0]) {
+  if (ModuleMapPath.length() != 0) {
     if (!createModuleMap(ModuleMapPath, Headers, Dependencies, HeaderPrefix,
                          RootModule))
       return 1; // Failed.





More information about the cfe-commits mailing list