summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-05-07 21:45:47 +0000
committerDevang Patel <dpatel@apple.com>2010-05-07 21:45:47 +0000
commit8d6a2b74284a04b701074b64253fcdebc96b2d24 (patch)
tree59ccf153aa4cce2b453f06b7a44e5c3fcf5e96e7 /llvm/lib/CodeGen
parent51bed9c870ae9fa6a9ae340a63713261928f1ec0 (diff)
downloadbcm5719-llvm-8d6a2b74284a04b701074b64253fcdebc96b2d24.tar.gz
bcm5719-llvm-8d6a2b74284a04b701074b64253fcdebc96b2d24.zip
Verify entire type descriptor not just tag.
llvm-svn: 103303
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f9c11d5824f..9e5472b2f91 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -913,7 +913,7 @@ DIE *DwarfDebug::getOrCreateTypeDIE(DIType Ty) {
/// addType - Add a new type attribute to the specified entity.
void DwarfDebug::addType(DIE *Entity, DIType Ty) {
- if (!Ty.isValid())
+ if (!Ty.Verify())
return;
// Check for pre-existence.
@@ -1656,7 +1656,7 @@ void DwarfDebug::addPubTypes(DISubprogram SP) {
DIArray Args = SPTy.getTypeArray();
for (unsigned i = 0, e = Args.getNumElements(); i != e; ++i) {
DIType ATy(Args.getElement(i));
- if (!ATy.isValid())
+ if (!ATy.Verify())
continue;
DICompositeType CATy = getDICompositeType(ATy);
if (DIDescriptor(CATy).Verify() && !CATy.getName().empty()
OpenPOWER on IntegriCloud