[Lldb-commits] [PATCH] D29256: Do not pass non-POD type variables through variadic function

Kamil Rytarowski via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 30 02:28:09 PST 2017


krytarowski added a comment.

In https://reviews.llvm.org/D29256#660072, @ki.stfu wrote:

> I don't know the point of this patch (probably it's something special for NetBSD? @emaste) but I'm okay with that.


It's undefined (implementation defined) behavior.

C++11 5.2.2/7:

>   Passing a potentially-evaluated argument of class type having a non-trivial copy constructor, a non-trivial move contructor, or a non-trivial destructor, with no corresponding parameter, is conditionally-supported with implementation-defined semantics.
>    

This patch was created to address compiler warning.


Repository:
  rL LLVM

https://reviews.llvm.org/D29256





More information about the lldb-commits mailing list