diff options
Diffstat (limited to 'clang/tools/libclang/CXComment.h')
-rw-r--r-- | clang/tools/libclang/CXComment.h | 2 |
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) { |