Go to file
Sean Callanan 24c5fe6b34 When the ASTImporter imports a source location, it avoids importing macro
expansions by calling getSpellingLoc(). That's great in most cases, but for
macros defined in the '<built-in>' source file, the source file is invalid
and does not import correctly, causing an assertion failure (the assertion
is Invalid SLocOffset or bad function choice).

A more reliable way to avoid this is to use getFileLoc(), which does not
return built-in locations. This avoids the crash but still preserves valid
source locations.

I've added a testcase that covers the previously crashing scenario.

https://reviews.llvm.org/D26054

llvm-svn: 286144
2016-11-07 20:42:25 +00:00
clang When the ASTImporter imports a source location, it avoids importing macro 2016-11-07 20:42:25 +00:00
clang-tools-extra [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified 2016-11-04 20:51:31 +00:00
compiler-rt [tsan] Cast floating-point types correctly when instrumenting atomic accesses, compiler-rt part 2016-11-07 19:10:13 +00:00
debuginfo-tests
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx Protect std::experimental::optional tests under libcpp-no-exceptions 2016-11-07 08:23:59 +00:00
libcxxabi Revert "Add some facilities to work with a git monorepo (experimental setup)" 2016-11-07 17:43:08 +00:00
libunwind Add support for old versions of MacOS to libunwind. Fixes PR22203. Thanks to Jeremy for the bug report and the patch. 2016-11-02 17:56:05 +00:00
lld [ELF] Make InputSection<ELFT>::writeTo virtual 2016-11-07 09:04:06 +00:00
lldb Fix an issue where LLDB would hang trying to launch tvOS simulator binaries 2016-11-07 16:25:01 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Add tests for r286139. 2016-11-07 20:40:16 +00:00
openmp [OpenMP] Enable ThreadSanitizer to check OpenMP programs 2016-11-07 15:58:36 +00:00
parallel-libs [Acxxel] Remove setActiveDeviceForThread 2016-10-28 00:54:02 +00:00
polly IslNodeBuilder: Ensure newly generated memory accesses are well-defined 2016-11-05 21:46:01 +00:00