aboutsummaryrefslogtreecommitdiffstats
path: root/m0/mutator-lvl0.h
diff options
context:
space:
mode:
Diffstat (limited to 'm0/mutator-lvl0.h')
-rw-r--r--m0/mutator-lvl0.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/m0/mutator-lvl0.h b/m0/mutator-lvl0.h
index 982c7ac..ce339b6 100644
--- a/m0/mutator-lvl0.h
+++ b/m0/mutator-lvl0.h
@@ -468,7 +468,11 @@ class MutagenExtraction
void ExtractAncestry(clang::ast_type_traits::DynTypedNode __dtn, clang::ASTContext &__astx)
{
+#if __clang_major__ >= 11
+ clang::DynTypedNodeList DNL = __astx.getParents(__dtn);
+#else
clang::ASTContext::DynTypedNodeList DNL = __astx.getParents(__dtn);
+#endif
if (DNL.empty()) return void();
/*FIXME-a LastStrain. obviously well end up losing some parents in cpp if we're just picking up the