Go to file
Mehdi Amini a7e893f638 Add a static_assert to enforce that parameters to llvm::format() are not totally unsafe
Summary:
I had for the second time today a bug where llvm::format("%s", Str)
was called with Str being a StringRef. The Linux and MacOS bots were
fine, but windows having different calling convention, it printed
garbage.

Instead we can catch this at compile-time: it is never expected to
call a C vararg printf-like function with non scalar type I believe.

Reviewers: bogner, Bigcheese, dexonsmith

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25266

llvm-svn: 283509
2016-10-06 23:26:29 +00:00
clang PR25890: Fix incoherent error handling in PerformImplicitConversion and 2016-10-06 23:12:58 +00:00
clang-tools-extra [clang-move] Move comments which are associated with the moved class. 2016-10-06 08:59:24 +00:00
compiler-rt [ubsan] 0 -> nullptr (NFC) 2016-10-06 22:58:45 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx Mark issues 2514, 2519, 2536 and 2475 as done 2016-10-06 13:59:18 +00:00
libcxxabi [CMake] Fix libc++abi standalone cmake build. 2016-10-03 11:08:17 +00:00
libunwind libunwind: Add OpenBSD case for _Unwind_Ptr typedef 2016-09-28 15:37:21 +00:00
lld Add an empty DBI stream. 2016-10-06 22:52:01 +00:00
lldb disable TSAN tests on macOS i386 2016-10-06 21:30:33 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Add a static_assert to enforce that parameters to llvm::format() are not totally unsafe 2016-10-06 23:26:29 +00:00
openmp [cmake] Fix for a bug https://llvm.org/bugs/show_bug.cgi?id=30489 "Cannot build with -DLIBOMP_FORTRAN_MODULES=True" 2016-09-30 22:05:45 +00:00
parallel-libs [SE] Change CoreTests target name 2016-09-27 15:32:52 +00:00
polly Build and run isl_test as part of check-polly 2016-10-04 19:48:40 +00:00