diff options
Diffstat (limited to 'mutator-lvl0.cpp')
-rw-r--r-- | mutator-lvl0.cpp | 8 |
1 files 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) { |