r265632 - [CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 6 18:12:18 PDT 2016


Author: bruno
Date: Wed Apr  6 20:12:18 2016
New Revision: 265632

URL: http://llvm.org/viewvc/llvm-project?rev=265632&view=rev
Log:
[CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h

Use toUppercase instead of ::toupper()

Modified:
    cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp

Modified: cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp?rev=265632&r1=265631&r2=265632&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp (original)
+++ cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp Wed Apr  6 20:12:18 2016
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "clang/Basic/CharInfo.h"
 #include "clang/Frontend/Utils.h"
 #include "clang/Lex/Preprocessor.h"
 #include "clang/Serialization/ASTReader.h"
@@ -91,7 +92,7 @@ static bool isCaseSensitivePath(StringRe
   // sensitive in the absense of realpath, since this is what the VFSWriter
   // already expects when sensitivity isn't setup.
   for (auto &C : Path)
-    UpperDest.push_back(::toupper(C));
+    UpperDest.push_back(toUppercase(C));
   if (real_path(UpperDest, RealDest) && Path.equals(RealDest))
     return false;
   return true;




More information about the cfe-commits mailing list