summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-02-26 02:40:48 +0000
committerRichard Trieu <rtrieu@google.com>2015-02-26 02:40:48 +0000
commit555c9673fd8c2380bf47f41450ce932472496376 (patch)
tree368e8500be701d746fb9aad53bf3cd0aed4f76d7 /llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
parent99b0a9cdd7a70300cc935fe9edaa19cdcf968d24 (diff)
downloadbcm5719-llvm-555c9673fd8c2380bf47f41450ce932472496376.tar.gz
bcm5719-llvm-555c9673fd8c2380bf47f41450ce932472496376.zip
Update assumption in template diffing about integer template arguments.
Fix for PR22017. Integer template arguments are automatically bit extended to the size of the integer type. In template diffing, evaluated expressions were not having their results extending, leading to comparing two APSInt's with different widths. Apply the proper bit extending when evaluating template arguments. This mainly affected bool template arguments. llvm-svn: 230603
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud