DI: Make getOrCreateLimitedType() return DICompositeType, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 20:34:41 +0000 (20:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 20:34:41 +0000 (20:34 +0000)
commitbd210e638aca82850ff77832b5be8579d9950c87
treeb4239051c1ffc0142ad6dee0f1a57fe2c0992f99
parent1bbe346cef04e3d98ab4d7bab3dd84e1f4c2acd0
DI: Make getOrCreateLimitedType() return DICompositeType, NFC

Change `getOrCreateLimitedType()` to return a `DICompositeType` and
remove the casts from its callers.  Inside, I've strengthened a `cast`
from `DICompositeTypeBase`, but the casts in the callers already prove
that this is safe.  There should be no functionality change here.

llvm-svn: 243155
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h