From: Craig Topper Date: Sat, 26 Sep 2015 05:42:17 +0000 (+0000) Subject: Revert part of r248660 as using None didn't work with the ArrayRef being returned... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e472c6954445768c6ebba6b66e777f2e5328ac97;p=clang Revert part of r248660 as using None didn't work with the ArrayRef being returned as an Optional. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248661 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 74bb1451d1..40fe903fea 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1307,7 +1307,7 @@ Optional> 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 None; + return llvm::ArrayRef(); } // Follow the superclass chain until we've mapped the receiver type @@ -1327,7 +1327,7 @@ Optional> 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 None; + return llvm::ArrayRef(); } // The receiver type has the type arguments we want.