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

           Summary: clang: doesn't add noalias attribute for restrict
                    qualifier
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This code:
int foo(char *restrict s) {}

Is compiled to this by clang:
define i32 @foo(i8* nocapture %f) nounwind readnone {
entry:
  ret i32 undef
}

And to this by llvm-gcc -std=c99:
define i32 @foo(i8* noalias nocapture %f) nounwind readnone {
entry:
  ret i32 undef
}


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

Reply via email to