]> granicus.if.org Git - clang/commit
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)
commit8b3103c1323a5c4fa4c385f156a72fee1787e512
tree32b8e3348a0c2f0fbe971e7e21f5b88bd58b7955
parent106ce7f150f6a2b730a4e03deef1877d34c82b37
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243155 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h