mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Disallow null as a named metadata operand.
Make MDNode::destroy private. Fix the one thing that used MDNode::destroy, outside of MDNode itself. One should never delete or destroy an MDNode explicitly. MDNodes implicitly go away when there are no references to them (implementation details aside). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
;; Simple NamedMDNode
|
||||
!0 = metadata !{i32 42}
|
||||
!1 = metadata !{metadata !"foo"}
|
||||
!llvm.stuff = !{!0, !1, null}
|
||||
!llvm.stuff = !{!0, !1}
|
||||
|
||||
!samename = !{!0, !1}
|
||||
declare void @samename()
|
||||
|
Reference in New Issue
Block a user