formatting
diff --git a/source/opt/instruction.cpp b/source/opt/instruction.cpp index 254af85..3ce38a9 100644 --- a/source/opt/instruction.cpp +++ b/source/opt/instruction.cpp
@@ -234,8 +234,10 @@ context()->get_def_use_mgr()->GetDef(GetSingleWordInOperand(1)); // Unpack the optional layer of arraying. - if (base_type->opcode() == SpvOpTypeArray || base_type->opcode() == SpvOpTypeRuntimeArray) { - base_type = context()->get_def_use_mgr()->GetDef(base_type->GetSingleWordInOperand(0)); + if (base_type->opcode() == SpvOpTypeArray || + base_type->opcode() == SpvOpTypeRuntimeArray) { + base_type = context()->get_def_use_mgr()->GetDef( + base_type->GetSingleWordInOperand(0)); } if (base_type->opcode() != SpvOpTypeImage) { @@ -266,8 +268,10 @@ context()->get_def_use_mgr()->GetDef(GetSingleWordInOperand(1)); // Unpack the optional layer of arraying. - if (base_type->opcode() == SpvOpTypeArray || base_type->opcode() == SpvOpTypeRuntimeArray) { - base_type = context()->get_def_use_mgr()->GetDef(base_type->GetSingleWordInOperand(0)); + if (base_type->opcode() == SpvOpTypeArray || + base_type->opcode() == SpvOpTypeRuntimeArray) { + base_type = context()->get_def_use_mgr()->GetDef( + base_type->GetSingleWordInOperand(0)); } if (base_type->opcode() != SpvOpTypeImage) { @@ -298,8 +302,10 @@ context()->get_def_use_mgr()->GetDef(GetSingleWordInOperand(1)); // Unpack the optional layer of arraying. - if (base_type->opcode() == SpvOpTypeArray || base_type->opcode() == SpvOpTypeRuntimeArray) { - base_type = context()->get_def_use_mgr()->GetDef(base_type->GetSingleWordInOperand(0)); + if (base_type->opcode() == SpvOpTypeArray || + base_type->opcode() == SpvOpTypeRuntimeArray) { + base_type = context()->get_def_use_mgr()->GetDef( + base_type->GetSingleWordInOperand(0)); } if (base_type->opcode() != SpvOpTypeImage) { @@ -326,8 +332,10 @@ context()->get_def_use_mgr()->GetDef(GetSingleWordInOperand(1)); // Unpack the optional layer of arraying. - if (base_type->opcode() == SpvOpTypeArray || base_type->opcode() == SpvOpTypeRuntimeArray) { - base_type = context()->get_def_use_mgr()->GetDef(base_type->GetSingleWordInOperand(0)); + if (base_type->opcode() == SpvOpTypeArray || + base_type->opcode() == SpvOpTypeRuntimeArray) { + base_type = context()->get_def_use_mgr()->GetDef( + base_type->GetSingleWordInOperand(0)); } if (base_type->opcode() != SpvOpTypeStruct) { @@ -365,8 +373,10 @@ context()->get_def_use_mgr()->GetDef(GetSingleWordInOperand(1)); // Unpack the optional layer of arraying. - if (base_type->opcode() == SpvOpTypeArray || base_type->opcode() == SpvOpTypeRuntimeArray) { - base_type = context()->get_def_use_mgr()->GetDef(base_type->GetSingleWordInOperand(0)); + if (base_type->opcode() == SpvOpTypeArray || + base_type->opcode() == SpvOpTypeRuntimeArray) { + base_type = context()->get_def_use_mgr()->GetDef( + base_type->GetSingleWordInOperand(0)); } if (base_type->opcode() != SpvOpTypeStruct) {