Go to file
Leonard Chan 7add582032 [Sema] Fix for crash on conditional operation with address_space pointer
Compiling the following causes clang to crash

```
char *cmp(__attribute__((address_space(1))) char *x, __attribute__((address_space(2))) char *y) {
  return x < y ? x : y;
}
```

with the message: "wrong cast for pointers in different address
spaces(must be an address space cast)!"

This is because during IR emission, the source and dest type for a
bitcast should not have differing address spaces.

This fix prints an error since the code shouldn't compile in the first place.

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

llvm-svn: 339167
2018-08-07 19:43:53 +00:00
clang [Sema] Fix for crash on conditional operation with address_space pointer 2018-08-07 19:43:53 +00:00
clang-tools-extra [clangd] Share getSymbolID implementation. 2018-08-07 08:57:52 +00:00
compiler-rt [libFuzzer] Disable print_unstable_stats.test for aarch64. 2018-08-07 14:22:00 +00:00
debuginfo-tests Disable the asan-deque.cpp integration test for AppleLLDB < v1000 2018-08-04 00:02:48 +00:00
libclc amdgcn: Use __constant AS for amdgcn builtins. 2018-08-03 15:14:08 +00:00
libcxx [libc++] Add the _LIBCPP_HIDE_FROM_ABI_AFTER_V1 macro 2018-08-06 14:11:50 +00:00
libcxxabi [itanium demangler] Support dot suffixes on block invocation functions 2018-08-02 17:45:01 +00:00
libunwind [CMake] Allow building standalone without any llvm-config available 2018-08-03 05:51:31 +00:00
lld lld-link: Take /SUBSYSTEM into account for automatic /ENTRY detection. 2018-08-07 19:10:28 +00:00
lldb Misc module/dwarf logging improvements 2018-08-07 18:00:30 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [SLP] Fix insert point for reused extract instructions. 2018-08-07 19:21:05 +00:00
openmp [OpenMP] Fix doacross testing for gcc 2018-08-02 19:13:07 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly Update isl to isl-0.20-48-g13eba5b5 2018-08-07 05:51:21 +00:00
README.md

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.