diff options
Diffstat (limited to 'lld/wasm/InputFiles.cpp')
| -rw-r--r-- | lld/wasm/InputFiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp index f3f0ef9a9949..706ee25d5aae 100644 --- a/lld/wasm/InputFiles.cpp +++ b/lld/wasm/InputFiles.cpp @@ -744,7 +744,7 @@ Symbol *ObjFile::createUndefined(const WasmSymbol &sym, bool isCalledDirectly) { llvm_unreachable("unknown symbol kind"); } -StringRef strip(StringRef s) { return s.trim(' '); } +static StringRef strip(StringRef s) { return s.trim(' '); } void StubFile::parse() { bool first = true; @@ -761,7 +761,7 @@ void StubFile::parse() { } // Lines starting with # are considered comments - if (line.starts_with("#")) + if (line.starts_with("#") || !line.size()) continue; StringRef sym; |
