From 2ca6d4495d5e834dff347fb503263511f3b9fdf8 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 13 Jan 2017 20:10:50 +0330 Subject: for 6.1 and 6.2, the check is against CanonicalType now, not Type. --- mutator-lvl0.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 9234c87..4f816fb 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -4525,8 +4525,12 @@ public: QualType QT = LHS->getType(); const clang::Type* TP = QT.getTypePtr(); + ASTContext *const ASTC = MR.Context; + + const clang::Type* CanonTP = ASTC->getCanonicalType(TP); + /*checking whether the unqualified type is simple char*/ - if (TP->isSpecificBuiltinType(BuiltinType::Kind::Char_U) || TP->isSpecificBuiltinType(BuiltinType::Kind::Char_S)) + if (CanonTP->isSpecificBuiltinType(BuiltinType::Kind::Char_U) || CanonTP->isSpecificBuiltinType(BuiltinType::Kind::Char_S)) { if (RHSIsIntLit) { @@ -4538,7 +4542,7 @@ public: } } - if (TP->isSpecificBuiltinType(BuiltinType::Kind::UChar) || TP->isSpecificBuiltinType(BuiltinType::Kind::SChar)) + if (CanonTP->isSpecificBuiltinType(BuiltinType::Kind::UChar) || CanonTP->isSpecificBuiltinType(BuiltinType::Kind::SChar)) { if (RHSIsCharLit) { -- cgit v1.2.3