http://llvm.org/bugs/show_bug.cgi?id=6739
Summary: If/else scoping problem
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
On this code:
void SSEDomainFixPass::Force(int rx, unsigned domain) {
hasLiveRegs = true;
if (DomainValue *dv = LiveRegs[rx]) {
if (dv->collapsed())
dv->add(domain);
else
Collapse(dv, domain);
} else {
// Set up basic collapsed DomainValue
DomainValue *dv = Pool.Alloc();
dv->add(domain);
SetLiveReg(rx, dv);
}
}
We complain about "dv" being redeclared (which it isn't), then go on to
complain that "dv" is NULL in this context.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs