summaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/SSEDomainFix.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-30 00:09:32 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-30 00:09:32 +0000
commitd77f8181b434e3213611927e9e818d930121a5d1 (patch)
tree2fe2c2e3647931d63ae24095acfbea735df45f6c /lib/Target/X86/SSEDomainFix.cpp
parent1de558b71f710a00e391fb9a88a6481b8918e207 (diff)
downloadexternal_llvm-d77f8181b434e3213611927e9e818d930121a5d1.zip
external_llvm-d77f8181b434e3213611927e9e818d930121a5d1.tar.gz
external_llvm-d77f8181b434e3213611927e9e818d930121a5d1.tar.bz2
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
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);
}