aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-06-02 21:25:08 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-06-02 21:25:08 +0000
commit62431b1d71e20025129f260da0a15a2f55768cc9 (patch)
tree450df6cb6e26a3ecc684f59a51216dfff24e5805 /clang/lib/Frontend/CompilerInvocation.cpp
parent436923ce35d669eb462c378f330e878708c8aae0 (diff)
downloadllvm-62431b1d71e20025129f260da0a15a2f55768cc9.zip
llvm-62431b1d71e20025129f260da0a15a2f55768cc9.tar.gz
llvm-62431b1d71e20025129f260da0a15a2f55768cc9.tar.bz2
[IR/AsmWriter] Output escape sequences if the first character isdigit()
If the first character in a metadata attachment's name is a digit, it has to be output using an escape sequence, otherwise it's not valid text IR. Removed an over-zealous assert from LLVMContext which didn't allow this. The rule should only apply to text IR. Actual names can have any sequence of non-NUL bytes. Also added some documentation on accepted names. Bug found with AFL fuzz. llvm-svn: 238867
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions