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

[llvm-profgen] CSProfileGenerator::generateLineNumBasedProfile - use cast<>...

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

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