Skip to content
  • Pete Cooper's avatar
    Fix some more asserts after r279466. · 036b94da
    Pete Cooper authored
    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
    036b94da
Loading