Skip to content
Commit f4aa2a42 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[llvm-profgen] ProfiledBinary::load - use cast<> instead of dyn_cast<> to...

[llvm-profgen] ProfiledBinary::load - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is always dereferenced immediately, so assert the cast is correct instead of returning nullptr
parent 9b72e0f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment