aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-02-09 19:01:22 +0000
committerEric Fiselier <eric@efcs.ca>2017-02-09 19:01:22 +0000
commita18ef6f1f9d2a32519192feedadb7814461db488 (patch)
tree4fc1e1307463d028cfcdc4661bc1dab955142192 /llvm/lib/Object/ArchiveWriter.cpp
parent29eeea00e12ee33728ead258c7d6466d79f8ca1d (diff)
downloadllvm-a18ef6f1f9d2a32519192feedadb7814461db488.zip
llvm-a18ef6f1f9d2a32519192feedadb7814461db488.tar.gz
llvm-a18ef6f1f9d2a32519192feedadb7814461db488.tar.bz2
Fix PR31916 - std::visit rejects visitors accepting lvalue arguments
A static assertion was misfiring since it checked is_callable<Visitor, decltype(__variant_alt<T>.value)>. However the decltype expression doesn't capture the value category as required. This patch applies extra braces to decltype to fix that. llvm-svn: 294612
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions