[all-commits] [llvm/llvm-project] ce066d: [BasicAA] Make sure types match in constant offset...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sun Mar 28 12:38:28 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce066da81c3e6175a02fa7ae831931b5e4126a2b
https://github.com/llvm/llvm-project/commit/ce066da81c3e6175a02fa7ae831931b5e4126a2b
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-03-28 (Sun, 28 Mar 2021)
Changed paths:
M llvm/lib/Analysis/BasicAliasAnalysis.cpp
M llvm/test/Analysis/BasicAA/q.bad.ll
Log Message:
-----------
[BasicAA] Make sure types match in constant offset heuristic
This can only happen if offset types that are larger than the
pointer size are involved. The previous implementation did not
assert in this case because it initialized the APInts to the
width of one of the variables -- though I strongly suspect it
did not compute correct results in this case.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32621
reported by fhahn.
More information about the All-commits
mailing list