[LLVMbugs] [Bug 5274] clang: doesn't add noalias attribute for restrict qualifier
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 17 07:50:30 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=5274
Pekka Jääskeläinen <pekka.jaaskelainen at tut.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WORKSFORME
--- Comment #6 from Pekka Jääskeläinen <pekka.jaaskelainen at tut.fi> 2010-05-17 09:50:29 CDT ---
(In reply to comment #5)
> Does it work for you with trunk?
Yes:
clang test2.c -c -emit-llvm -o - | llvm-dis
...
define i32 @foo(i8* noalias %s) nounwind {
entry:
%retval = alloca i32, align 4 ; <i32*> [#uses=2]
%s.addr = alloca i8*, align 8 ; <i8**> [#uses=1]
store i8* %s, i8** %s.addr
store i32 0, i32* %retval
%0 = load i32* %retval ; <i32> [#uses=1]
ret i32 %0
}
--
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