summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-08-05 16:41:00 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-08-05 16:41:00 +0000
commit9e4374daa3954d4603b6fd64c741cb080da79e44 (patch)
treeb22b4fea981e52edce1f5fe98c877f158ea95890 /clang/lib/AST/Decl.cpp
parentf3bb3617506e0e73c94f5928b805922cf021911a (diff)
downloadbcm5719-llvm-9e4374daa3954d4603b6fd64c741cb080da79e44.tar.gz
bcm5719-llvm-9e4374daa3954d4603b6fd64c741cb080da79e44.zip
Revert "[Sema] Add sizeof diagnostics for bzero"
This reverts commit r277787, which caused PR28870. llvm-svn: 277830
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 813a20a9f52..d1e8d25ea04 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3408,10 +3408,6 @@ unsigned FunctionDecl::getMemoryFunctionKind() const {
case Builtin::BIstrlen:
return Builtin::BIstrlen;
- case Builtin::BI__builtin_bzero:
- case Builtin::BIbzero:
- return Builtin::BIbzero;
-
default:
if (isExternC()) {
if (FnInfo->isStr("memset"))
@@ -3434,8 +3430,6 @@ unsigned FunctionDecl::getMemoryFunctionKind() const {
return Builtin::BIstrndup;
else if (FnInfo->isStr("strlen"))
return Builtin::BIstrlen;
- else if (FnInfo->isStr("bzero"))
- return Builtin::BIbzero;
}
break;
}
OpenPOWER on IntegriCloud