commit | 41d83afa975ea5fb26de5728786609ab087213f7 | [log] [tgz] |
---|---|---|
author | Florian Hahn <flo@fhahn.com> | Wed Dec 12 02:22:12 2018 +0000 |
committer | Florian Hahn <flo@fhahn.com> | Wed Dec 12 02:22:12 2018 +0000 |
tree | df23c5be94acb79918b44c7de04064d68a705ce1 | |
parent | 2a3f739bfccd52e5c86122a17ef062bfe6766d4f [diff] |
[ConstantInt] Check active bits before calling getZExtValue. Without this check, we hit an assertion in getZExtValue, if the constant value does not fit into an uint64_t. As getZExtValue returns an uint64_t, should we update getAggregateElement to take an uin64_t as well? This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6109. Reviewers: efriedma, craig.topper, spatel Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D55547 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348906 91177308-0d34-0410-b5e6-96231b3b80d8