summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-01-24 02:48:32 +0000
committerRichard Trieu <rtrieu@google.com>2015-01-24 02:48:32 +0000
commit15b66535cae9ec01c643b5dde8c45d468ab1ee67 (patch)
tree8df267539f2169f084863e29bb5510e35531026a /llvm/lib/Bitcode
parent57bb7c7cada0ae854d1d9b6b4808208b160e2125 (diff)
downloadbcm5719-llvm-15b66535cae9ec01c643b5dde8c45d468ab1ee67.tar.gz
bcm5719-llvm-15b66535cae9ec01c643b5dde8c45d468ab1ee67.zip
When checking the template argument list, use a copy of that list for changes
and only update the orginal list on a valid arugment list. When checking an individual expression template argument, and conversions are required, update the expression in the template argument. Since template arguments are speculatively checked, the copying of the template argument list prevents updating the template arguments when the list does not match the template. Additionally, clean up the integer checking code in the template diffing code. The code performs unneccessary conversions from APSInt to APInt. Fixes PR21758. This essentially reverts r224770 to recommits r224667 and r224668 with extra changes to prevent the template instantiation problems seen in PR22006. A test to catch the discovered problem is also added. llvm-svn: 226983
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud