We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d030dd0 commit 83f3a74Copy full SHA for 83f3a74
clang/lib/AST/ExprObjC.cpp
@@ -22,6 +22,7 @@
22
#include <algorithm>
23
#include <cassert>
24
#include <cstdint>
25
+#include <cstring>
26
27
using namespace clang;
28
@@ -357,7 +358,7 @@ ObjCAvailabilityCheckExpr *ObjCAvailabilityCheckExpr::CreateEmpty(
357
358
totalSizeToAlloc<char>(FeaturesLen + 1),
359
alignof(ObjCAvailabilityCheckExpr));
360
new (E) ObjCAvailabilityCheckExpr(Empty);
- bzero(E->getTrailingObjects<char>(), FeaturesLen + 1);
361
+ memset(E->getTrailingObjects<char>(), 0, FeaturesLen + 1);
362
return E;
363
}
364
0 commit comments