mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Be gentle to MSVC. C++ is hard, after all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1de558b71f
commit
d77f8181b4
@ -203,14 +203,15 @@ void SSEDomainFixPass::Kill(int rx) {
|
|||||||
/// Force register rx into domain.
|
/// Force register rx into domain.
|
||||||
void SSEDomainFixPass::Force(int rx, unsigned domain) {
|
void SSEDomainFixPass::Force(int rx, unsigned domain) {
|
||||||
hasLiveRegs = true;
|
hasLiveRegs = true;
|
||||||
if (DomainValue *dv = LiveRegs[rx]) {
|
DomainValue *dv;
|
||||||
|
if ((dv = LiveRegs[rx])) {
|
||||||
if (dv->collapsed())
|
if (dv->collapsed())
|
||||||
dv->add(domain);
|
dv->add(domain);
|
||||||
else
|
else
|
||||||
Collapse(dv, domain);
|
Collapse(dv, domain);
|
||||||
} else {
|
} else {
|
||||||
// Set up basic collapsed DomainValue
|
// Set up basic collapsed DomainValue
|
||||||
DomainValue *dv = Pool.Alloc();
|
dv = Pool.Alloc();
|
||||||
dv->add(domain);
|
dv->add(domain);
|
||||||
SetLiveReg(rx, dv);
|
SetLiveReg(rx, dv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user