Skip to content

Commit

Permalink
clang-format: fix undefined behavior.
Browse files Browse the repository at this point in the history
The previous change failed to initialize the SymbolsMerged field.
  • Loading branch information
mprobst committed Apr 14, 2021
1 parent 18a9b18 commit 2fe4909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Format/SortJavaScriptImports.cpp
Expand Up @@ -89,7 +89,7 @@ struct JsModuleReference {
SmallVector<JsImportedSymbol, 1> Symbols;
// Whether some symbols were merged into this one. Controls if the module
// reference needs re-formatting.
bool SymbolsMerged;
bool SymbolsMerged = false;
// The source location just after { and just before } in the import.
// Extracted eagerly to allow modification of Symbols later on.
SourceLocation SymbolsStart, SymbolsEnd;
Expand Down

0 comments on commit 2fe4909

Please sign in to comment.