diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-29 06:05:01 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-29 06:05:01 +0000 |
| commit | f78d849a5509beac41932567733664575531d02d (patch) | |
| tree | 2943b1cc3b1ac2fad0e87be8f9c825c6f51612dd /clang/lib | |
| parent | 7e24c0a89c0c936a4763c60e3c4c573852a26231 (diff) | |
| download | bcm5719-llvm-f78d849a5509beac41932567733664575531d02d.tar.gz bcm5719-llvm-f78d849a5509beac41932567733664575531d02d.zip | |
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*>.
llvm-svn: 216710
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 95b1dc09062..ea3e63fe34a 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -5819,9 +5819,7 @@ EnableIfAttr *Sema::CheckEnableIf(FunctionDecl *Function, ArrayRef<Expr *> Args, 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; } |

