PR14472: Preserve qualifiers while unwrapping types for debug info
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Jan 2013 04:37:12 +0000 (04:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Jan 2013 04:37:12 +0000 (04:37 +0000)
commit0549106d88617aefb64baf2ff4838bf0e525573a
treea95bc5a42f37ff169477f3fe4181d050a1a6c494
parent8717111bb152a16a0fb610e54810f18ca8432cc5
PR14472: Preserve qualifiers while unwrapping types for debug info

Looks like r161368 fixed this for one case but not all. This change generalizes
the solution over all the unwrapping cases. Now that preserving the qualifiers
is done independent of the particular type being unwrapped I won't bother
adding test cases for each one but at least demonstrate that this change was
necessary & sufficient to fix the bug.

llvm-svn: 173002
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-template-quals.cpp