- Still need to investigate why this is happening.
- Fixes the crash described at https://github.com/clangd/clangd/issues/113
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 35962 Build 35961: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/Selection.cpp | ||
---|---|---|
373 | This isn't a sufficient fix, there are 5 callsites that don't check for failure. | |
clang-tools-extra/clangd/SourceCode.cpp | ||
314 | We have a reproducer, why can't we investigate now? |
clang-tools-extra/clangd/SourceCode.cpp | ||
---|---|---|
314 | Doing that. Just wanted to stop the crashes in the meanwhile. |
This isn't a sufficient fix, there are 5 callsites that don't check for failure.
Adding defenses to each of them is the right thing if we really can't handle failure, but today they assume the invariant that if the inputs were from the same file id, the output will be valid. Can we really not provide that guarantee?