aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2023-01-23 03:35:26 -0800
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-01-23 03:35:56 -0800
commit44cac911e51a15fcfac7a9888ad0146191a14730 (patch)
treef6704c0176e5eb718ef6eba522e352c0189b82e4 /clang/tools/c-index-test/c-index-test.c
parent768aed13785b6a42cc3bcfe829efc231ba536909 (diff)
downloadllvm-44cac911e51a15fcfac7a9888ad0146191a14730.zip
llvm-44cac911e51a15fcfac7a9888ad0146191a14730.tar.gz
llvm-44cac911e51a15fcfac7a9888ad0146191a14730.tar.bz2
Fix `FindSingleBitChange` to handle NOT(V) where V is not an Instruction
Was previously buggy to assume that NOT'd Value was always an instruction. If the NOT'd value is not an Instruction, we should just return as its either a constant, in which can we will re-run the logic after constant-folding, or its a type we can't evaluate anyways. This is a follow up to: `D140939` Reviewed By: pengfei, RKSimon Differential Revision: https://reviews.llvm.org/D142339
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions