diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-04-07 01:12:18 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-04-07 01:12:18 +0000 |
commit | 4775fcfa4ee817e061dcedcb4b47fa5d9e39e53d (patch) | |
tree | e0fb116b364a9b2c537c3006c05ec79425ac90cc /clang/lib/Frontend/ModuleDependencyCollector.cpp | |
parent | c1e407070844dd619893f12feae5d1217255a854 (diff) | |
download | llvm-4775fcfa4ee817e061dcedcb4b47fa5d9e39e53d.zip llvm-4775fcfa4ee817e061dcedcb4b47fa5d9e39e53d.tar.gz llvm-4775fcfa4ee817e061dcedcb4b47fa5d9e39e53d.tar.bz2 |
[CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h
Use toUppercase instead of ::toupper()
llvm-svn: 265632
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
-rw-r--r-- | clang/lib/Frontend/ModuleDependencyCollector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ModuleDependencyCollector.cpp b/clang/lib/Frontend/ModuleDependencyCollector.cpp index e3e2685..d23f988 100644 --- a/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ b/clang/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; |