freebsd-skq/contrib/llvm/tools
Dimitry Andric 5e23bfeb2d Pull in r258110 from upstream clang trunk, by Faisal Vali:
Fix PR26134: When substituting into default template arguments, keep
  CurContext unchanged.

  Or, do not set Sema's CurContext to the template declaration's when
  substituting into default template arguments of said template
  declaration.
  If we do push the template declaration context on to Sema, and the
  template declaration is at namespace scope, Sema can get confused and
  try and do odr analysis when substituting into default template
  arguments, even though the substitution could be occurring within a
  dependent context.
  I'm not sure why this was being done, perhaps there was concern that
  if a default template argument referred to a previous template
  parameter, it might not be found during substitution - but all
  regression tests pass, and I can't craft a test that would cause it
  to fails (if some one does, please inform me, and i'll craft a
  different fix for the PR).

  This patch removes a single line of code, but unfortunately adds more
  than it removes, because of the tests.  Some day I still hope to
  commit a patch that removes far more lines than it adds, while
  leaving clang better for it ;)

  Sorry that r253590 ("Change the expression evaluation context from
  Unevaluated to ConstantEvaluated while substituting into non-type
  template argument defaults") caused the PR!

This fix will be merged to the upstream release_38 branch soon, but we
need it now, to fix a failure in the databases/sfcgal port.
2016-01-19 18:57:37 +00:00
..
bugpoint Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
clang Pull in r258110 from upstream clang trunk, by Faisal Vali: 2016-01-19 18:57:37 +00:00
llc Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
lldb Update llvm, clang and lldb to release_38 branch r257836. 2016-01-16 17:48:57 +00:00
lli Update llvm, clang and lldb to trunk r257626, and update build glue. 2016-01-14 17:42:46 +00:00
llvm-ar Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-as Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-bcanalyzer Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-cov Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-cxxdump Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-diff Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-dis Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-dwarfdump Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-extract Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-link Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-lto Update llvm, clang and lldb to trunk r257626, and update build glue. 2016-01-14 17:42:46 +00:00
llvm-mc Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-nm Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-objdump Update llvm, clang and lldb to trunk r257626, and update build glue. 2016-01-14 17:42:46 +00:00
llvm-pdbdump Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-profdata Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-readobj Update llvm, clang and lldb to trunk r257626, and update build glue. 2016-01-14 17:42:46 +00:00
llvm-rtdyld Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-stress Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00
llvm-symbolizer Update llvm, clang and lldb to trunk r257626, and update build glue. 2016-01-14 17:42:46 +00:00
opt Update llvm to trunk r256633. 2015-12-30 13:13:10 +00:00