[llvm-commits] [llvm] r99855 - /llvm/trunk/lib/Target/X86/SSEDomainFix.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Mar 29 17:09:32 PDT 2010
Author: stoklund
Date: Mon Mar 29 19:09:32 2010
New Revision: 99855
URL: http://llvm.org/viewvc/llvm-project?rev=99855&view=rev
Log:
Be gentle to MSVC. C++ is hard, after all.
Modified:
llvm/trunk/lib/Target/X86/SSEDomainFix.cpp
Modified: llvm/trunk/lib/Target/X86/SSEDomainFix.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/SSEDomainFix.cpp?rev=99855&r1=99854&r2=99855&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/SSEDomainFix.cpp (original)
+++ llvm/trunk/lib/Target/X86/SSEDomainFix.cpp Mon Mar 29 19:09:32 2010
@@ -203,14 +203,15 @@
/// 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);
}
More information about the llvm-commits
mailing list