Thanks to Sebastian for the suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59330
91177308-0d34-0410-b5e6-
96231b3b80d8
DeclCtx = reinterpret_cast<uintptr_t>(MDC) | 0x1;
// Allow back-patching. Observe that we register the variable of the
// *object* for back-patching. Its actual value will get filled in later.
- D.ReadUIntPtr(reinterpret_cast<uintptr_t&>(MDC->SemanticDC), SemaDCPtrID);
- D.ReadUIntPtr(reinterpret_cast<uintptr_t&>(MDC->LexicalDC), LexicalDCPtrID);
+ D.ReadPtr(MDC->SemanticDC, SemaDCPtrID);
+ D.ReadPtr(MDC->LexicalDC, LexicalDCPtrID);
}
}