[cfe-commits] r130394 - in /cfe/trunk/lib: AST/TemplateBase.cpp Analysis/UninitializedValues.cpp Lex/MacroArgs.cpp
Chandler Carruth
chandlerc at gmail.com
Thu Apr 28 01:19:46 PDT 2011
Author: chandlerc
Date: Thu Apr 28 03:19:45 2011
New Revision: 130394
URL: http://llvm.org/viewvc/llvm-project?rev=130394&view=rev
Log:
Silence more -Wnon-pod-memset given its current implementation. I may be
able to revert these based on a patch I'm working on, but no reason for
people to be spammed with warnings in the interim.
Modified:
cfe/trunk/lib/AST/TemplateBase.cpp
cfe/trunk/lib/Analysis/UninitializedValues.cpp
cfe/trunk/lib/Lex/MacroArgs.cpp
Modified: cfe/trunk/lib/AST/TemplateBase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TemplateBase.cpp?rev=130394&r1=130393&r2=130394&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TemplateBase.cpp (original)
+++ cfe/trunk/lib/AST/TemplateBase.cpp Thu Apr 28 03:19:45 2011
@@ -338,7 +338,7 @@
//===----------------------------------------------------------------------===//
TemplateArgumentLocInfo::TemplateArgumentLocInfo() {
- memset(this, 0, sizeof(TemplateArgumentLocInfo));
+ memset((void*)this, 0, sizeof(TemplateArgumentLocInfo));
}
SourceRange TemplateArgumentLoc::getSourceRange() const {
Modified: cfe/trunk/lib/Analysis/UninitializedValues.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/UninitializedValues.cpp?rev=130394&r1=130393&r2=130394&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/UninitializedValues.cpp (original)
+++ cfe/trunk/lib/Analysis/UninitializedValues.cpp Thu Apr 28 03:19:45 2011
@@ -173,7 +173,7 @@
if (!n)
return;
vals = new std::pair<ValueVector*, ValueVector*>[n];
- memset(vals, 0, sizeof(*vals) * n);
+ memset((void*)vals, 0, sizeof(*vals) * n);
}
CFGBlockValues::~CFGBlockValues() {
Modified: cfe/trunk/lib/Lex/MacroArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/MacroArgs.cpp?rev=130394&r1=130393&r2=130394&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/MacroArgs.cpp (original)
+++ cfe/trunk/lib/Lex/MacroArgs.cpp Thu Apr 28 03:19:45 2011
@@ -284,7 +284,7 @@
assert(ArgNo < NumUnexpArgTokens && "Invalid argument number!");
if (StringifiedArgs.empty()) {
StringifiedArgs.resize(getNumArguments());
- memset(&StringifiedArgs[0], 0,
+ memset((void*)&StringifiedArgs[0], 0,
sizeof(StringifiedArgs[0])*getNumArguments());
}
if (StringifiedArgs[ArgNo].isNot(tok::string_literal))
More information about the cfe-commits
mailing list