diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-12-18 21:45:41 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-12-18 21:45:41 +0000 |
commit | 0f59cb38e7f319ee46b66812b212a5afaa3572bb (patch) | |
tree | ef6fe1ec0a7931fb0fe8a5ab0c1aff79ef4d595f /clang/lib/Sema/SemaFixItUtils.cpp | |
parent | 3f422280f5c3a432f9525df02db710d5d81df239 (diff) | |
download | bcm5719-llvm-0f59cb38e7f319ee46b66812b212a5afaa3572bb.tar.gz bcm5719-llvm-0f59cb38e7f319ee46b66812b212a5afaa3572bb.zip |
Wire a SourceLocation into IsDerivedFrom and move the RequireCompleteType call
for the derived class into it. This is mostly just a cleanup, but could in
principle be a bugfix if there is some codepath that reaches here and didn't
previously require a complete type (I couldn't find any such codepath, though).
llvm-svn: 256037
Diffstat (limited to 'clang/lib/Sema/SemaFixItUtils.cpp')
-rw-r--r-- | clang/lib/Sema/SemaFixItUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaFixItUtils.cpp b/clang/lib/Sema/SemaFixItUtils.cpp index 982d9cf4c26..714fbedf09b 100644 --- a/clang/lib/Sema/SemaFixItUtils.cpp +++ b/clang/lib/Sema/SemaFixItUtils.cpp @@ -42,7 +42,7 @@ bool ConversionFixItGenerator::compareTypesSimple(CanQualType From, const CanQualType FromUnq = From.getUnqualifiedType(); const CanQualType ToUnq = To.getUnqualifiedType(); - if ((FromUnq == ToUnq || (S.IsDerivedFrom(FromUnq, ToUnq)) ) && + if ((FromUnq == ToUnq || (S.IsDerivedFrom(Loc, FromUnq, ToUnq)) ) && To.isAtLeastAsQualifiedAs(From)) return true; return false; |