Go to file
Stephan T. Lavavej 0f66190aef [libcxx] [test] Avoid MSVC truncation warnings.
MSVC emits "warning C4244: 'initializing': conversion from 'int'
to 'short', possible loss of data" when it sees pair<Whatever, short>
constructed from (whatever, 4), because int is being truncated to
short within pair's constructor. (The compiler doesn't take into
account the fact that 4 is a literal at the callsite; it generates
this warning when the constructor is instantiated, because it might
be called with a runtime-valued int that would actually truncate.)

Instead of static_cast<short>, we can simply change short to int
in these tests, without affecting the pair operations that they're
trying to test: move assignment, convert copy construction, and
convert move construction.

Fixes D45016.

llvm-svn: 329973
2018-04-12 23:56:07 +00:00
clang Fix test failure caused by r329965. 2018-04-12 22:50:50 +00:00
clang-tools-extra [clangd][nfc] Simplify readDelimitedMessage() 2018-04-12 21:33:24 +00:00
compiler-rt [asan] Remove malloc_context_size=0 from asan_device_setup. 2018-04-12 22:06:18 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc hypot: Port from amd builtins 2018-04-10 00:11:58 +00:00
libcxx [libcxx] [test] Avoid MSVC truncation warnings. 2018-04-12 23:56:07 +00:00
libcxxabi [demangler] NFC: Some refactoring to support partial demangling. 2018-04-12 20:41:06 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld Do not keep shared symbols created from garbage-collected eliminated DSOs. 2018-04-12 21:57:04 +00:00
lldb [docs] Add LLDB_TEST_USE_CUSTOM_C_COMPILER and LLDB_TEST_USE_CUSTOM_CXX_COMPILER to the build and test hmtl pages 2018-04-12 23:29:49 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [lit] Remove duplicate to_string method 2018-04-12 23:45:15 +00:00
openmp Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Add isl operator overloads for isl::pw_aff (Try II) 2018-04-12 06:15:17 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.