Add assertes to ensure that we don't derefernce a nullptr
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/WinEHPrepare.cpp | ||
---|---|---|
254 | https://llvm.org/docs/CodingStandards.html#assert-liberally put some kind of error message in the assertion statement, |
llvm/lib/CodeGen/WinEHPrepare.cpp | ||
---|---|---|
254 | Use cast instead of dyn_cast. cast has an internal assert |
llvm/lib/CodeGen/WinEHPrepare.cpp | ||
---|---|---|
321–322 | Did you use "git commit --amend"? |
llvm/lib/CodeGen/WinEHPrepare.cpp | ||
---|---|---|
321–322 |
Good point. I didn't notice that :-( |
https://llvm.org/docs/CodingStandards.html#assert-liberally
put some kind of error message in the assertion statement,