File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,9 @@ bool ModuleRootSignature::parse(NamedMDNode *Root) {
95
95
signature pair.
96
96
*/
97
97
98
- for (unsigned int Sid = 0 ; Sid < Root->getNumOperands (); Sid++) {
99
- MDNode *Node = dyn_cast<MDNode>(Root->getOperand (Sid));
98
+ for (const MDNode *Node : Root->operands ()) {
100
99
101
- if (Node == nullptr || Node ->getNumOperands () != 2 )
100
+ if (Node->getNumOperands () != 2 )
102
101
return reportError (" Invalid format for Root Signature Definition. Pairs "
103
102
" of function, root signature expected." );
104
103
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ enum class RootSignatureElementKind {
30
30
};
31
31
32
32
struct ModuleRootSignature {
33
- uint32_t Flags;
33
+ uint32_t Flags = 0 ;
34
34
35
35
ModuleRootSignature () = default ;
36
36
You can’t perform that action at this time.
0 commit comments