summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXComment.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/CXComment.h')
-rw-r--r--clang/tools/libclang/CXComment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXComment.h b/clang/tools/libclang/CXComment.h
index 126227f8d76..0780a65e76b 100644
--- a/clang/tools/libclang/CXComment.h
+++ b/clang/tools/libclang/CXComment.h
@@ -49,7 +49,7 @@ inline const T *getASTNodeAs(CXComment CXC) {
}
inline ASTContext &getASTContext(CXComment CXC) {
- return static_cast<ASTUnit *>(CXC.TranslationUnit->TUData)->getASTContext();
+ return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext();
}
inline comments::CommandTraits &getCommandTraits(CXComment CXC) {
OpenPOWER on IntegriCloud