diff options
author | Richard Trieu <rtrieu@google.com> | 2013-04-03 02:11:36 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-04-03 02:11:36 +0000 |
commit | 625785d370f6c0d8262090b8a2abe3799f72d58d (patch) | |
tree | 2a4c561a0ce7e36199b2295da7c96f0e711c9871 /lib/Format/Format.cpp | |
parent | 54c63523ec002146328b69bdb912f64144b1f077 (diff) |
Fix a crasher in Template Diffing.
Value depenedent expressions for default arguments cannot be evaluated.
Instead, use the desugared template type to get an argument expression that
can be used. This is needed for both integer and declaration arguements.
Also, move this common code into a separate function.
Patch by Olivier Goffart!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions