When performing a static downcast as part of a static_cast, make sure
that we're dealing with canonical types like the documentation say
(yay, CanQualType). Alas, this is another instance where using
getQualifiers() on a non-canonical QualType got us in trouble.

Good news: with this fix, Clang can now parse all of its own headers!

llvm-svn: 88848
2 files changed
tree: 3251171c84db0cb54f5b589f634571e04a40a1a9
  1. clang/
  2. compiler-rt/
  3. llvm/