mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Reintroduce a check accidentally removed in 288873 to fix clang bots
I believe this is the cause of the failure, but have not been able to confirm. Note that this is a speculative fix; I'm still waiting for a full build to finish as I synced and ended up doing a clean build which takes 20+ minutes on my machine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
315dd3228b
commit
59d0d38b8d
@ -71,12 +71,14 @@ class LVILatticeVal {
|
|||||||
/// "nothing known yet".
|
/// "nothing known yet".
|
||||||
undefined,
|
undefined,
|
||||||
|
|
||||||
/// This Value has a specific constant value. (For integers, constantrange
|
/// This Value has a specific constant value. (For constant integers,
|
||||||
/// is used instead.)
|
/// constantrange is used instead. Integer typed constantexprs can appear
|
||||||
|
/// as constant.)
|
||||||
constant,
|
constant,
|
||||||
|
|
||||||
/// This Value is known to not have the specified value. (For integers,
|
/// This Value is known to not have the specified value. (For constant
|
||||||
/// constantrange is used instead.)
|
/// integers, constantrange is used instead. As above, integer typed
|
||||||
|
/// constantexprs can appear here.)
|
||||||
notconstant,
|
notconstant,
|
||||||
|
|
||||||
/// The Value falls within this range. (Used only for integer typed values.)
|
/// The Value falls within this range. (Used only for integer typed values.)
|
||||||
@ -232,6 +234,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(isConstantRange() && "New LVILattice type?");
|
assert(isConstantRange() && "New LVILattice type?");
|
||||||
|
if (!RHS.isConstantRange()) {
|
||||||
|
// We can get here if we've encountered a constantexpr of integer type
|
||||||
|
// and merge it with a constantrange.
|
||||||
|
markOverdefined();
|
||||||
|
return;
|
||||||
|
}
|
||||||
ConstantRange NewR = Range.unionWith(RHS.getConstantRange());
|
ConstantRange NewR = Range.unionWith(RHS.getConstantRange());
|
||||||
if (NewR.isFullSet())
|
if (NewR.isFullSet())
|
||||||
markOverdefined();
|
markOverdefined();
|
||||||
|
Loading…
Reference in New Issue
Block a user