]> granicus.if.org Git - clang/commit
When mapping restrict to noalias, look for 'restrict' on the parameter variable
authorJohn McCall <rjmccall@apple.com>
Sat, 27 Mar 2010 00:47:27 +0000 (00:47 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 27 Mar 2010 00:47:27 +0000 (00:47 +0000)
commitd8e10d26b5a24257fe13c289b653fd450326eeff
treee4324396380cbfd6ef524dd2226886b2b10b22b5
parent524c308506e77e173092e87a0724a27817311428
When mapping restrict to noalias, look for 'restrict' on the parameter variable
instead of the canonical parameter type (which has correctly dropped all such
direct qualifiers).  Fixes PR6695.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGen/restrict.c [new file with mode: 0644]