[LLVMbugs] [Bug 8806] Incorrect warning: expression result unused
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 18 14:00:22 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8806
Chris Lattner <clattner at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-12-18 16:00:22 CST ---
The warning is correct. "a,b" is a comma expression which evaluates and throws
away the value of "a". That for loop compiles to the exact same code as:
for (NSUInteger j = finish; j != NSUIntegerMax; j--) {
--
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.
More information about the llvm-bugs
mailing list