Use a substituted type when determining how to substitute in non-type template
params.  Don't insert addrof operations when matching against a pointer;
array/function conversions should take care of this for us, assuming the
argument type-checked in the first place.  Add a fixme where we seem to be
using a less-restrictive reference type than we should.

Fixes PR 6249.

llvm-svn: 95495
2 files changed
tree: 5d6934b6de8f8e80ac5689ac577870b49b644da3
  1. clang/
  2. compiler-rt/
  3. llvm/