diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-05-05 00:41:58 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-05-05 00:41:58 +0000 |
commit | 44ebbd54361c88071b2740ded92a13ad7dc5275f (patch) | |
tree | 6270237a8c04f9b838239b65c4e2e3b4d0cda682 /clang/lib/AST/Decl.cpp | |
parent | 3238fb759563e64b3fc1f28bb3e184de3d7b07a1 (diff) | |
download | bcm5719-llvm-44ebbd54361c88071b2740ded92a13ad7dc5275f.tar.gz bcm5719-llvm-44ebbd54361c88071b2740ded92a13ad7dc5275f.zip |
Replace ArrayRef<T>() with None, now that we have an implicit ArrayRef constructor from None
Patch by Robert Wilhelm.
llvm-svn: 181139
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 1f4248c8e58..ff012fc4018 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -3429,7 +3429,7 @@ ImportDecl *ImportDecl::CreateDeserialized(ASTContext &C, unsigned ID, ArrayRef<SourceLocation> ImportDecl::getIdentifierLocs() const { if (!ImportedAndComplete.getInt()) - return ArrayRef<SourceLocation>(); + return None; const SourceLocation *StoredLocs = reinterpret_cast<const SourceLocation *>(this + 1); |