diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-07 00:04:05 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-07 00:04:05 +0000 |
commit | 0e85f6e391990cc20be98263640b843edfa32bef (patch) | |
tree | 808ec8e8eab9f2802c262c09743a61879013fd70 /lib/IR/DebugInfo.cpp | |
parent | 69f8e0935af16622ca13d26e6a66464d3c1f3da4 (diff) | |
download | llvm-0e85f6e391990cc20be98263640b843edfa32bef.tar.gz llvm-0e85f6e391990cc20be98263640b843edfa32bef.tar.bz2 llvm-0e85f6e391990cc20be98263640b843edfa32bef.tar.xz |
Debug Info: Use identifier to reference DIType in containing type field of
a DISubprogram.
Verifier is updated accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 8a6f006d32..5828a3fcfa 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -524,7 +524,7 @@ bool DISubprogram::Verify() const { if (!fieldIsMDNode(DbgNode, 7)) return false; // Containing type @ field 12. - if (!fieldIsMDNode(DbgNode, 12)) + if (!fieldIsTypeRef(DbgNode, 12)) return false; return DbgNode->getNumOperands() == 20; } |