summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-28 21:59:02 +0000
committerAlp Toker <alp@nuanti.com>2013-12-28 21:59:02 +0000
commita724cff01b7c2dab536afe1ddf73740bf05ab841 (patch)
tree076ab855e4cce2933548196b88f7d2cb8418152b /clang/lib/Sema/SemaChecking.cpp
parent82862258e3208c5771f64b6a823d10400342ae68 (diff)
downloadbcm5719-llvm-a724cff01b7c2dab536afe1ddf73740bf05ab841.tar.gz
bcm5719-llvm-a724cff01b7c2dab536afe1ddf73740bf05ab841.zip
Rename isBuiltinCall() to getBuiltinCallee()
This better describes what the function does. Cleanup only. llvm-svn: 198127
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index feee61ea5ec..cbe19741f24 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -3847,8 +3847,8 @@ void Sema::CheckStrlcpycatArguments(const CallExpr *Call,
else {
// Look for 'strlcpy(dst, x, strlen(x))'
if (const CallExpr *SizeCall = dyn_cast<CallExpr>(SizeArg)) {
- if (SizeCall->isBuiltinCall() == Builtin::BIstrlen
- && SizeCall->getNumArgs() == 1)
+ if (SizeCall->getBuiltinCallee() == Builtin::BIstrlen &&
+ SizeCall->getNumArgs() == 1)
CompareWithSrc = ignoreLiteralAdditions(SizeCall->getArg(0), Context);
}
}
@@ -4388,11 +4388,11 @@ void Sema::CheckFloatComparison(SourceLocation Loc, Expr* LHS, Expr *RHS) {
// Check for comparisons with builtin types.
if (CallExpr* CL = dyn_cast<CallExpr>(LeftExprSansParen))
- if (CL->isBuiltinCall())
+ if (CL->getBuiltinCallee())
return;
if (CallExpr* CR = dyn_cast<CallExpr>(RightExprSansParen))
- if (CR->isBuiltinCall())
+ if (CR->getBuiltinCallee())
return;
// Emit the diagnostic.
OpenPOWER on IntegriCloud