Commit 065431f
committed
Add CallBase::getCalledFunctionName
There's a lot of uses of `getCalledFunction()->getName()`, without ever
checking if `getCalledFunction()` returns a nullptr. Add a new helper
that returns an `std::optional<StringRef>`, that can be used to
- Avoid method chaining
- Have a more safe shortcut to get the callee name.1 parent 9d92bea commit 065431f
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1348 | 1358 | | |
1349 | 1359 | | |
1350 | 1360 | | |
| |||
0 commit comments