diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-10 20:05:31 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-10 20:05:31 +0000 |
commit | 5b5e27afa441f13fab524cb81c05dfaf54e22895 (patch) | |
tree | 95c7001ba54a6507c635f1b08399ee0965d6140a /clang/lib/AST/APValue.cpp | |
parent | b37ddeafc06a3f68ccbcf2d980272c4b6da11576 (diff) | |
download | bcm5719-llvm-5b5e27afa441f13fab524cb81c05dfaf54e22895.tar.gz bcm5719-llvm-5b5e27afa441f13fab524cb81c05dfaf54e22895.zip |
Improve interface of APValuePathEntry.
llvm-svn: 360463
Diffstat (limited to 'clang/lib/AST/APValue.cpp')
-rw-r--r-- | clang/lib/AST/APValue.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp index f9cbf331b28..9ed756d9d84 100644 --- a/clang/lib/AST/APValue.cpp +++ b/clang/lib/AST/APValue.cpp @@ -505,8 +505,7 @@ void APValue::printPretty(raw_ostream &Out, ASTContext &Ctx, QualType Ty) const{ if (ElemTy->getAs<RecordType>()) { // The lvalue refers to a class type, so the next path entry is a base // or member. - const Decl *BaseOrMember = - BaseOrMemberType::getFromOpaqueValue(Path[I].BaseOrMember).getPointer(); + const Decl *BaseOrMember = Path[I].getAsBaseOrMember().getPointer(); if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(BaseOrMember)) { CastToBase = RD; ElemTy = Ctx.getRecordType(RD); @@ -520,7 +519,7 @@ void APValue::printPretty(raw_ostream &Out, ASTContext &Ctx, QualType Ty) const{ } } else { // The lvalue must refer to an array. - Out << '[' << Path[I].ArrayIndex << ']'; + Out << '[' << Path[I].getAsArrayIndex() << ']'; ElemTy = Ctx.getAsArrayType(ElemTy)->getElementType(); } } |