diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2016-08-22 22:27:05 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2016-08-22 22:27:05 +0000 |
| commit | 1523925daa7709b7268569702611aa115b372d91 (patch) | |
| tree | ef17dffce9c1c6ee319342f4ac5f062d51c263dd /llvm | |
| parent | 2fbcbb7b38a770366a62dd5dba6c82267087ac65 (diff) | |
| download | bcm5719-llvm-1523925daa7709b7268569702611aa115b372d91.tar.gz bcm5719-llvm-1523925daa7709b7268569702611aa115b372d91.zip | |
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
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index e6c25c0899f..2873bcbd0e5 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -883,7 +883,7 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI, case MachineOperand::MO_IntrinsicID: { Intrinsic::ID ID = Op.getIntrinsicID(); if (ID < Intrinsic::num_intrinsics) - OS << "intrinsic(@" << Intrinsic::getName(ID) << ')'; + OS << "intrinsic(@" << Intrinsic::getName(ID, None) << ')'; else { const MachineFunction &MF = *Op.getParent()->getParent()->getParent(); const TargetIntrinsicInfo *TII = MF.getTarget().getIntrinsicInfo(); |

