diff options
author | Brian Gesiak <modocache@gmail.com> | 2020-02-17 23:10:30 -0500 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2020-02-18 08:22:03 -0500 |
commit | c30d8f7c910d9ddcaf8cab1ebea4b202bc88fcf9 (patch) | |
tree | e80fbfbe584849f388c9110c680596e07595ad1a /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | b3cd44f80b8d6de76d41f1c78241d782c77cd193 (diff) | |
download | llvm-c30d8f7c910d9ddcaf8cab1ebea4b202bc88fcf9.zip llvm-c30d8f7c910d9ddcaf8cab1ebea4b202bc88fcf9.tar.gz llvm-c30d8f7c910d9ddcaf8cab1ebea4b202bc88fcf9.tar.bz2 |
[IR] Set name when inserting 'llvm::Value*'
Summary:
I noticed a small regression in a toy project of mine after applying
D73835, in which instruction names weren't being set properly. In the
example test case included with this patch,
`llvm::IRBuilderBase::CreateAdd` returns an `llvm::Value *` that is then
passed as an argument to `llvm::IRBuilderBase::Insert`. The overloaded
function that is selected for that call then ignores the `Name`
parameter that is given. This patch addresses that issue.
Reviewers: nikic, Meinersbur, nhaehnle, fhahn, thakis, teemperor
Reviewed By: nikic, fhahn
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D74754
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions