diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2017-02-01 16:02:55 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2017-02-01 16:02:55 +0000 |
| commit | b5bc933c295c7168c8cc4e068a6b2f8d20407e75 (patch) | |
| tree | 2a6fbb94289810ab653137a5c5c9795a4fa0a90d /llvm/test/CodeGen/X86/implicit-null-checks.mir | |
| parent | 25f6d710d90c632b8b1b994e6cf5cf0bfc67a9e4 (diff) | |
| download | bcm5719-llvm-b5bc933c295c7168c8cc4e068a6b2f8d20407e75.tar.gz bcm5719-llvm-b5bc933c295c7168c8cc4e068a6b2f8d20407e75.zip | |
Do not pass non-POD type variables through variadic function
Summary:
Cannot pass object of non-POD type 'const CMIUtilString' through variadic function.
This behavior is undefined according to 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.
Replace SetErrorDescriptionn(errMsg); with SetErrorDescription(errMsg);
Original patch by Tobias Nygren (NetBSD).
Sponsored by <The NetBSD Foundation>
Reviewers: clayborg, labath, emaste, joerg, ki.stfu
Reviewed By: labath, ki.stfu
Subscribers: tnn, ki.stfu, #lldb
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D29256
llvm-svn: 293774
Diffstat (limited to 'llvm/test/CodeGen/X86/implicit-null-checks.mir')
0 files changed, 0 insertions, 0 deletions

