[compiler-rt] r204484 - [libsanitizer] Add descriptions for the common flags.

Timur Iskhodzhanov timurrrr at google.com
Mon Mar 24 03:54:02 PDT 2014


2014-03-21 21:28 GMT+04:00 Alexander Potapenko <glider at google.com>:

> @@ -149,8 +184,7 @@ bool FlagInDescriptionList(const char *n
>  void AddFlagDescription(const char *name, const char *description) {
>    if (FlagInDescriptionList(name)) return;
>    FlagDescription *new_description =
> -      (FlagDescription*)allocator_for_flags.Allocate(
> -          sizeof(FlagDescription));
> +      new(allocator_for_flags) FlagDescription();
>

FYI
../sanitizer_common/sanitizer_flags.cc(187) : warning C4345: behavior
change: an object of POD type constructed with an initializer of the form
() will be default-initialized

Fixed in r204597.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140324/5979a919/attachment.html>


More information about the llvm-commits mailing list