summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-09-26 05:22:17 +0000
committerCraig Topper <craig.topper@gmail.com>2015-09-26 05:22:17 +0000
commit5b7183551fd826f687a5079b73fcb54aa422f284 (patch)
tree953905e86987d6ae845ea1cdc428a33a9a6c3764 /clang/lib/AST
parentf36a5c4af7b09de58afa819dc7455d6ece854a9a (diff)
downloadbcm5719-llvm-5b7183551fd826f687a5079b73fcb54aa422f284.tar.gz
bcm5719-llvm-5b7183551fd826f687a5079b73fcb54aa422f284.zip
Use None to avoid re-mentioning the ArrayRef type to call the default constructor.
llvm-svn: 248660
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 40fe903feab..74bb1451d1e 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -1307,7 +1307,7 @@ Optional<ArrayRef<QualType>> Type::getObjCSubstitutions(
if (!curClassDecl) {
// If we don't have a context type (e.g., this is "id" or some
// variant thereof), substitute the bounds.
- return llvm::ArrayRef<QualType>();
+ return None;
}
// Follow the superclass chain until we've mapped the receiver type
@@ -1327,7 +1327,7 @@ Optional<ArrayRef<QualType>> Type::getObjCSubstitutions(
// If we don't have a receiver type, or the receiver type does not
// have type arguments, substitute in the defaults.
if (!objectType || objectType->isUnspecialized()) {
- return llvm::ArrayRef<QualType>();
+ return None;
}
// The receiver type has the type arguments we want.
OpenPOWER on IntegriCloud