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/Sema/SemaTemplate.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/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 4b6ae96de40..b9d3ff8666f 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -6438,7 +6438,7 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, // -- a subobject if (Value.hasLValuePath() && Value.getLValuePath().size() == 1 && VD && VD->getType()->isArrayType() && - Value.getLValuePath()[0].ArrayIndex == 0 && + Value.getLValuePath()[0].getAsArrayIndex() == 0 && !Value.isLValueOnePastTheEnd() && ParamType->isPointerType()) { // Per defect report (no number yet): // ... other than a pointer to the first element of a complete array |