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

TGParser::ParseOperation - silence static analyzer dyn_cast<TypedInit> null...

TGParser::ParseOperation - silence static analyzer dyn_cast<TypedInit> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<TypedInit> directly and if not assert will fire for us.

I've also pulled out the repeated getType() call which was the only user of the pointer.

llvm-svn: 372997
parent f1e14519
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment