[LLVMbugs] [Bug 2870] New: a modified pointer should be considered as being read in the future

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 7 16:07:11 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2870

           Summary: a modified pointer should be considered as being read in
                    the future
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ricardo_barbano at hotmail.com
                CC: llvmbugs at cs.uiuc.edu


if you have:

void foo(char *buffer){

buffer += 20;
}

llvm says: "Value stored to 'buffer' is never read"

well, you can't assume that because the modified value can be read from the
calling function.


-- 
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