Fix some more asserts after r279466.
authorPete Cooper <peter_cooper@apple.com>
Tue, 23 Aug 2016 16:23:45 +0000 (16:23 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 23 Aug 2016 16:23:45 +0000 (16:23 +0000)
commit036b94dad3fd736738931ced55e2f70525415e6f
treeedb825c26a04af54cdf33faf58fefff1a89adcaf
parent95580d6ed2760914110bee903e8a9dc985649b4b
Fix some more asserts after r279466.

That commit added a new version of Intrinsic::getName which should only
be called when the intrinsic has no overloaded types.  There are several
debugging paths, such as SDNode::dump which are printing the name of the
intrinsic but don't have the overloaded types.  These paths should be ok
to just print the name instead of crashing.

The fix here is ultimately to just add a 'None' second argument as that
calls the overload capable getName, which is less efficient, but this is a
debugging path anyway, and not perf critical.

Thanks to Björn Pettersson for pointing out that there were more crashes.

llvm-svn: 279528
llvm/lib/CodeGen/MachineInstr.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp