diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-02 05:18:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-02 05:18:44 +0000 |
commit | e6327747b72bb687c948270f702ff53c30f411a6 (patch) | |
tree | bc891542f2d622dfc93dc32bad05ecf8e3b33412 /lib/CodeGen/CodeGenTypes.cpp | |
parent | 503d613235543c1adf7ea49fce56cffa1e65d5fb (diff) |
Fix several bugs in array -> pointer decomposition.
First, we got several CVR propagation cases wrong, which Eli pointed
out in PR2039.
Second, we didn't propagate address space qualifiers correctly, leading
to incorrect lowering of code in CodeGen/address-space.c.
Third, we didn't uniformly propagate the specifier in the array to the
pointer ("int[restrict 4]" -> "int *restrict").
This adds an ASTContext::getArrayDecayedType member that handles the
non-trivial logic for this seemingly simple operation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
0 files changed, 0 insertions, 0 deletions