From: Bruno Cardoso Lopes Date: Thu, 7 Apr 2016 01:12:18 +0000 (+0000) Subject: [CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a916f7f5e9bbc096e7c6fab18be01b8013a39fe1;p=clang [CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h Use toUppercase instead of ::toupper() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265632 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/ModuleDependencyCollector.cpp b/lib/Frontend/ModuleDependencyCollector.cpp index e3e268596d..d23f988b9f 100644 --- a/lib/Frontend/ModuleDependencyCollector.cpp +++ b/lib/Frontend/ModuleDependencyCollector.cpp @@ -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(StringRef Path) { // 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;