Go to file
Hans Wennborg 0a20f5417c Better codegen support for DLL attributes being dropped after the first declaration (PR20792)
For the following code:

  __declspec(dllimport) int f(int x);
  int user(int x) {
    return f(x);
  }
  int f(int x) { return 1; }

Clang will drop the dllimport attribute in the AST, but CodeGen would have
already put it on the LLVM::Function, and that would never get updated.
(The same thing happens for global variables.)

This makes Clang check dropped DLL attribute case each time the LLVM object
is referenced.

This isn't perfect, because we will still get it wrong if the function is
never referenced by codegen after the attribute is dropped, but this handles
the common cases and makes us not fail in the verifier.

llvm-svn: 216699
2014-08-29 00:16:06 +00:00
clang Better codegen support for DLL attributes being dropped after the first declaration (PR20792) 2014-08-29 00:16:06 +00:00
clang-tools-extra Update for Clang API change. 2014-08-27 20:54:50 +00:00
compiler-rt [asan] introduce __asan_load_cxx_array_cookie: check that the array cookie address is properly poisoned and return the cookie value. If not, return 0 to avoid infinite loop of DTORs (in case of use-after-free). Calls to this function will be inserted by clang (separate change) 2014-08-28 22:28:04 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Fix build against LLVM SVN >= r216488 2014-08-28 06:19:37 +00:00
libcxx Mark test types for <atomic> nothrow default constructible. Patch from Steve MacKenzie. 2014-08-27 17:00:11 +00:00
libcxxabi Remove strict dependency on llvm-config. 2014-08-26 20:50:07 +00:00
lld [PECOFF] Another Win64 relocation bug fix 2014-08-28 19:00:40 +00:00
lldb Added setting: platform.plugin.linux.use-llgs-for-local (boolean), defaults to false 2014-08-28 22:17:54 +00:00
llvm Revert two GEP-related InstCombine commits 2014-08-29 00:06:43 +00:00
openmp Commit PowerPC64 support from Carlo Bertolli at IBM. 2014-08-07 10:12:54 +00:00
polly Update for LLVM api change 2014-08-25 18:16:52 +00:00