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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 46680 Build 49249: arc lint + arc unit
Event Timeline
Comment Actions
Looks like a straight-forward fix, thanks! LGTM. Please wait a bit until committing, in case there are additional comments.
llvm/unittests/IR/IRBuilderTest.cpp | ||
---|---|---|
934 | Nit: variables should start with upper case? (https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly) |
Comment Actions
LGTM as well. Thanks for catching.
Probably didn't show up in any existing tests because it only happens with NoFolder, which we don't use often.
Comment Actions
Thanks for the reviews! Good point about the variable casing, I changed it and am going to commit this shortly.
Nit: variables should start with upper case? (https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly)