From: Craig Topper Date: Fri, 29 Aug 2014 06:05:01 +0000 (+0000) Subject: Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mention... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e65841b438850bfedde7a168d215a50228539a3;p=clang Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef to ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216710 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 95b1dc0906..ea3e63fe34 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5819,9 +5819,7 @@ EnableIfAttr *Sema::CheckEnableIf(FunctionDecl *Function, ArrayRef Args, APValue Result; EnableIfAttr *EIA = cast(*I); if (!EIA->getCond()->EvaluateWithSubstitution( - Result, Context, Function, - ArrayRef(ConvertedArgs.data(), - ConvertedArgs.size())) || + Result, Context, Function, llvm::makeArrayRef(ConvertedArgs)) || !Result.isInt() || !Result.getInt().getBoolValue()) { return EIA; }