diff options
Diffstat (limited to 'compilerplugins/clang/salunicodeliteral.cxx')
-rw-r--r-- | compilerplugins/clang/salunicodeliteral.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/salunicodeliteral.cxx b/compilerplugins/clang/salunicodeliteral.cxx index 4c2a00669ab0..0a8eeea4885b 100644 --- a/compilerplugins/clang/salunicodeliteral.cxx +++ b/compilerplugins/clang/salunicodeliteral.cxx @@ -9,13 +9,14 @@ #ifndef LO_CLANG_SHARED_PLUGINS #include "check.hxx" +#include "compat.hxx" #include "plugin.hxx" namespace { bool isAsciiCharacterLiteral(Expr const * expr) { if (auto const e = dyn_cast<CharacterLiteral>(expr)) { - return e->getKind() == CharacterLiteral::Ascii; + return e->getKind() == compat::CharacterLiteralKind::Ascii; } return false; } @@ -74,7 +75,7 @@ private: t = tt->desugar(); } auto const e1 = expr->getSubExprAsWritten(); - auto const loc = compat::getBeginLoc(e1); + auto const loc = e1->getBeginLoc(); if (loc.isMacroID() && compiler.getSourceManager().isAtStartOfImmediateMacroExpansion( loc)) |