summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-05-28 12:40:17 +0200
committerserge-sans-paille <sguelton@redhat.com>2020-07-08 17:36:13 +0200
commit37afd99c768b29c7df7c5f2eb645362fb61f9915 (patch)
tree4de3ecb00aed7e3b892a2a57a28a3f499837dcc3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta15d798594ae340b037efec2cdba5ec77221e7e7 (diff)
Double check that passes correctly set their Modified status
The approach is simple: if a pass reports that it's not modifying a Function/Module, compute a loose hash of that Function/Module and compare it with the original one. If we report no change but there's a hash change, then we have an error. This approach misses a lot of change but it's not super intrusive and can detect most of the simple mistakes. Differential Revision: https://reviews.llvm.org/D80916
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions