summaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/SSEDomainFix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/X86/SSEDomainFix.cpp')
-rw-r--r--lib/Target/X86/SSEDomainFix.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/SSEDomainFix.cpp b/lib/Target/X86/SSEDomainFix.cpp
index 3e456c2..415c1e8 100644
--- a/lib/Target/X86/SSEDomainFix.cpp
+++ b/lib/Target/X86/SSEDomainFix.cpp
@@ -203,14 +203,15 @@ void SSEDomainFixPass::Kill(int rx) {
/// Force register rx into domain.
void SSEDomainFixPass::Force(int rx, unsigned domain) {
hasLiveRegs = true;
- if (DomainValue *dv = LiveRegs[rx]) {
+ DomainValue *dv;
+ if ((dv = LiveRegs[rx])) {
if (dv->collapsed())
dv->add(domain);
else
Collapse(dv, domain);
} else {
// Set up basic collapsed DomainValue
- DomainValue *dv = Pool.Alloc();
+ dv = Pool.Alloc();
dv->add(domain);
SetLiveReg(rx, dv);
}