add an assert() to ensure that's the case (as I'm not convinced it won't happen)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310373
91177308-0d34-0410-b5e6-
96231b3b80d8
// If we get a No or May, then return it immediately, no amount of analysis
// will improve this situation.
- if (BaseAlias != MustAlias)
+ if (BaseAlias != MustAlias) {
+ assert(BaseAlias == NoAlias || BaseAlias == MayAlias);
return BaseAlias;
+ }
// Otherwise, we have a MustAlias. Since the base pointers alias each other
// exactly, see if the computed offset from the common pointer tells us