diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-02-02 17:35:06 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-02-02 17:35:06 +0000 |
commit | bd42f9794655a29745612a07a236fac742736dea (patch) | |
tree | f912aadb1bffb3b643ab465ffbf72028194be647 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | dd2ef0af4680915106086c31d4c8d936b1a0f830 (diff) | |
download | llvm-bd42f9794655a29745612a07a236fac742736dea.zip llvm-bd42f9794655a29745612a07a236fac742736dea.tar.gz llvm-bd42f9794655a29745612a07a236fac742736dea.tar.bz2 |
[SDAG] Add SDNode/SDValue getConstantOperandAPInt helper. NFCI.
We already have the getConstantOperandVal helper which returns a uint64_t, but along comes the fuzzer and inserts a i128 -1 constant or something and the whole thing asserts.......
I've updated a few obvious cases, and tried to make use of the const reference where possible, but there's more to do. A number of existing oss-fuzz tickets should be fixed if we start using APInt and perform value clamping where necessary.
llvm-svn: 352961
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions