Fixes https://bugs.llvm.org/show_bug.cgi?id=36474
In general, getSVal API should be changed so that it does not crash on some non-obvious conditions.
It should either be updated to require a type, or to return Optional<SVal>.
Differential D43801
[analyzer] Only attempt to get the value of locations of known type george.karpenkov on Feb 26 2018, 7:36 PM. Authored by
Details Fixes https://bugs.llvm.org/show_bug.cgi?id=36474 In general, getSVal API should be changed so that it does not crash on some non-obvious conditions.
Diff Detail |
Pls explain why it would work correctly now?