OSDN Git Service

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)
commit0504d91b0050c6d25747b5e254d3b3c25d02945a
tree3762e85b9ed10489d5f864df3a2946e0f497d5f9
parenta350f5d0bf9303d8d2daf9fa74709a6d4ef8844c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp