This prevents two bad things from happening:
- implicit conversion to GUID
- comparison (VI1 == VI2) based on implicit bool conversion
This change immediately uncovered bug in stats printing, so I fixed it as well
Paths
| Differential D70383
[ThinLTO] Make ValueInfo::operator bool() explicit ClosedPublic Authored by evgeny777 on Nov 18 2019, 3:25 AM.
Details Summary This prevents two bad things from happening:
This change immediately uncovered bug in stats printing, so I fixed it as well
Diff Detail Event TimelineThis revision is now accepted and ready to land.Nov 18 2019, 8:31 AM
Closed by commit rG4ef9315c4be0: [ThinLTO] Make ValueInfo::operator bool() explicit (authored by evgeny777). · Explain WhyNov 19 2019, 2:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 229789 llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/LTO/LTO.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/ThinLTO/X86/funcimport-stats.ll
|
Is this a bug fix exposed by your change or just unrelated cleanup? If the latter please commit separately.