aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2017-09-07 08:30:09 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2017-09-07 08:30:09 +0000
commit7594c61d2d4a8567372d94eb55ba04f9e9810f52 (patch)
tree2d44ebef9342015bb9271c1291b5462d40f37b48 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parent25799d93f09e0ff214affbc301dec71e2b58d83d (diff)
downloadllvm-7594c61d2d4a8567372d94eb55ba04f9e9810f52.zip
llvm-7594c61d2d4a8567372d94eb55ba04f9e9810f52.tar.gz
llvm-7594c61d2d4a8567372d94eb55ba04f9e9810f52.tar.bz2
[ELF] Prevent crash with binary inputs with non-ascii file names
If using --format=binary with an input file name that has one or more non-ascii characters in, LLD has undefined behaviour (it crashes on my Windows Debug build) when calling isalnum with these non-ascii characters. Instead, of calling std::isalnum, this patch uses an internal version that ignores the locale and checks a specific subset of characters. Reviewers: ruiu Differential Revision: https://reviews.llvm.org/D37331 llvm-svn: 312705
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions