mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
revert my previous switch lowering change, which miscompiles a few programs.
This will break a dj test until I have time to investigate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7501605988
commit
ae4f99d843
@ -389,8 +389,8 @@ class SelectionDAGLowering {
|
||||
struct CaseCmp {
|
||||
bool operator () (const Case& C1, const Case& C2) {
|
||||
assert(isa<ConstantInt>(C1.first) && isa<ConstantInt>(C2.first));
|
||||
return cast<const ConstantInt>(C1.first)->getZExtValue() <
|
||||
cast<const ConstantInt>(C2.first)->getZExtValue();
|
||||
return cast<const ConstantInt>(C1.first)->getSExtValue() <
|
||||
cast<const ConstantInt>(C2.first)->getSExtValue();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user