[PATCH] D44531: MC: fix layering violation introduced in r325139
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 16 02:13:09 PDT 2018
labath added a comment.
> llvm/tools/clang/lib/Basic/SourceManager.cpp:173:17: error: no viable conversion from 'const char [5]' to 'llvm::StringLiteral'
Are you using gcc (~4.x) by any chance? Older versions of gcc seem to have issues with the StringLiteral constructor. One solution is to wrap the argument in extra {}, so something like `.StartsWith({"\x00\x00\xFE\xFF"}, "UTF-32 (BE)")`
Repository:
rL LLVM
https://reviews.llvm.org/D44531
More information about the llvm-commits
mailing list