Instead of returning a range of WeakVHs,
forcing every user of the interface to check the WeakVH before using it,
return a range which filters out the null WeakVHs and dereferences it.
This is a fix for a FIXME by @djasper.
| Paths 
 |  Differential  D32059  
Make AssumptionCache's interface return a range of Values Needs ReviewPublic Authored by yabash on Apr 13 2017, 3:39 PM. 
Details 
Diff Detail Event Timeline
 
Revision Contents 
 
Diff 95227 include/llvm/Analysis/AssumptionCache.h
 lib/Analysis/AssumptionCache.cpp
 lib/Analysis/CodeMetrics.cpp
 lib/Analysis/LazyValueInfo.cpp
 lib/Analysis/ScalarEvolution.cpp
 
 lib/Analysis/ValueTracking.cpp
 lib/Transforms/InstCombine/InstCombineSelect.cpp
 lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
 lib/Transforms/Utils/PredicateInfo.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Our general convention for variables is that they start with a capital letter (for acronyms, this sometimes means we have variable names in all caps, but that's okay). So: