r252398 - Use makeArrayRef instead of explicitly mentioning the type. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 22:16:16 PST 2015
Author: ctopper
Date: Sat Nov 7 00:16:16 2015
New Revision: 252398
URL: http://llvm.org/viewvc/llvm-project?rev=252398&view=rev
Log:
Use makeArrayRef instead of explicitly mentioning the type. NFC
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=252398&r1=252397&r2=252398&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat Nov 7 00:16:16 2015
@@ -5048,7 +5048,7 @@ Sema::BuildResolvedCallExpr(Expr *Fn, Na
if (!Result.isUsable()) return ExprError();
TheCall = dyn_cast<CallExpr>(Result.get());
if (!TheCall) return Result;
- Args = ArrayRef<Expr *>(TheCall->getArgs(), TheCall->getNumArgs());
+ Args = llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs());
}
// Bail out early if calling a builtin with custom typechecking.
More information about the cfe-commits
mailing list