Fix crash from assert in r279466.
authorPete Cooper <peter_cooper@apple.com>
Mon, 22 Aug 2016 22:27:05 +0000 (22:27 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 22 Aug 2016 22:27:05 +0000 (22:27 +0000)
commit1523925daa7709b7268569702611aa115b372d91
treeef17dffce9c1c6ee319342f4ac5f062d51c263dd
parent2fbcbb7b38a770366a62dd5dba6c82267087ac65
Fix crash from assert in r279466.

The assert in r279466 checks that we call the correct version of
Intrinsic::getName.  The version which accepts only an ID should not
be used for intrinsics with overloaded types.  The global-isel
code was calling the wrong version.  The test CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
will ensure that we call the correct version from now on.

llvm-svn: 279487
llvm/lib/CodeGen/MIRPrinter.cpp