r216710 - Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>.
Craig Topper
craig.topper at gmail.com
Thu Aug 28 23:05:01 PDT 2014
Author: ctopper
Date: Fri Aug 29 01:05:01 2014
New Revision: 216710
URL: http://llvm.org/viewvc/llvm-project?rev=216710&view=rev
Log:
Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=216710&r1=216709&r2=216710&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Aug 29 01:05:01 2014
@@ -5819,9 +5819,7 @@ EnableIfAttr *Sema::CheckEnableIf(Functi
APValue Result;
EnableIfAttr *EIA = cast<EnableIfAttr>(*I);
if (!EIA->getCond()->EvaluateWithSubstitution(
- Result, Context, Function,
- ArrayRef<const Expr*>(ConvertedArgs.data(),
- ConvertedArgs.size())) ||
+ Result, Context, Function, llvm::makeArrayRef(ConvertedArgs)) ||
!Result.isInt() || !Result.getInt().getBoolValue()) {
return EIA;
}
More information about the cfe-commits
mailing list