Go to file
Kamil Rytarowski b5bc933c29 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
2017-02-01 16:02:55 +00:00
clang Revert r293518 as it caused module linking error in clang-reorder-fields 2017-02-01 10:52:02 +00:00
clang-tools-extra [clang-tidy] misc-argument-comment: ignore comments after arguments 2017-02-01 15:28:25 +00:00
compiler-rt [asan] Support handle_sigfpe on Darwin 2017-02-01 07:54:36 +00:00
debuginfo-tests
libclc math: Add logb builtin 2017-01-18 03:14:10 +00:00
libcxx Fix up some no-exception compile failures 2017-01-31 13:12:32 +00:00
libcxxabi Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are "<special-name> ::= TW <object name>" for wrapper variables or "<special-name> ::= TH <object name>" for initialization variables. 2017-01-31 15:18:56 +00:00
libunwind Revert "DWARF: convert error logs to _LIBUNWIND_LOG" 2017-01-27 02:26:52 +00:00
lld [ELF] Use SyntheticSections for Thunks 2017-02-01 10:26:03 +00:00
lldb Do not pass non-POD type variables through variadic function 2017-02-01 16:02:55 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [ValueTracking] avoid crashing from bad assumptions (PR31809) 2017-02-01 15:41:32 +00:00
openmp [OpenMP] Redefined macro warning in libomptarget 2017-02-01 08:33:38 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Update to recent formatting changes 2017-02-01 10:12:09 +00:00