diff --git a/lldb/source/Commands/CommandObjectTrace.cpp b/lldb/source/Commands/CommandObjectTrace.cpp --- a/lldb/source/Commands/CommandObjectTrace.cpp +++ b/lldb/source/Commands/CommandObjectTrace.cpp @@ -116,7 +116,7 @@ Trace::FindPlugin(GetDebugger(), *session_file, json_file.GetDirectory().AsCString())) { lldb::TraceSP trace_sp = traceOrErr.get(); - if (m_options.m_verbose) + if (m_options.m_verbose && trace_sp) result.AppendMessageWithFormat("loading trace with plugin %s\n", trace_sp->GetPluginName().AsCString()); } else diff --git a/mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp b/mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp --- a/mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp +++ b/mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp @@ -27,7 +27,7 @@ /// attribute. static uint64_t getFirstIntValue(ArrayAttr attr) { return (*attr.getAsValueRange().begin()).getZExtValue(); -}; +} namespace { diff --git a/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp b/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp --- a/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp +++ b/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp @@ -129,12 +129,12 @@ // Mapping traits. //===----------------------------------------------------------------------===// -LLVM_YAML_IS_SEQUENCE_VECTOR(LinalgTensorDef); -LLVM_YAML_IS_SEQUENCE_VECTOR(SerializedAffineMap); -LLVM_YAML_IS_SEQUENCE_VECTOR(LinalgIteratorTypeDef); -LLVM_YAML_IS_SEQUENCE_VECTOR(ScalarAssign); -LLVM_YAML_IS_SEQUENCE_VECTOR(ScalarExpression); -LLVM_YAML_IS_DOCUMENT_LIST_VECTOR(LinalgOpConfig); +LLVM_YAML_IS_SEQUENCE_VECTOR(LinalgTensorDef) +LLVM_YAML_IS_SEQUENCE_VECTOR(SerializedAffineMap) +LLVM_YAML_IS_SEQUENCE_VECTOR(LinalgIteratorTypeDef) +LLVM_YAML_IS_SEQUENCE_VECTOR(ScalarAssign) +LLVM_YAML_IS_SEQUENCE_VECTOR(ScalarExpression) +LLVM_YAML_IS_DOCUMENT_LIST_VECTOR(LinalgOpConfig) namespace llvm { namespace yaml {