Fix bad APInt compare.
authorRichard Trieu <rtrieu@google.com>
Sat, 21 Sep 2019 04:18:54 +0000 (04:18 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 21 Sep 2019 04:18:54 +0000 (04:18 +0000)
commit77297f0761d2009e25d5d709cdcb041229f3493c
tree435a48d505ce19f835b284e6792156b2f5388d81
parent4c05de8c1d157f4b5e0091a52dbbcce7242ee485
Fix bad APInt compare.

APInt comparison require both to have the same bitwidth.  Since only the value
is needed, use the compare function APInt::isSameValue instead.

llvm-svn: 372454
clang/lib/AST/Expr.cpp
clang/test/SemaCXX/self-comparison.cpp