Skip to content

Commit 1ad813f

Browse files
authored
Merge branch 'main' into andre/tighten-warnings-api
2 parents 6a80a3f + 8a5a782 commit 1ad813f

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

llvm/lib/CodeGen/MachineOutliner.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,9 +1017,6 @@ MachineFunction *MachineOutliner::createOutlinedFunction(
10171017
/* Outlined code is optimized code by definition. */
10181018
DISubprogram::SPFlagDefinition | DISubprogram::SPFlagOptimized);
10191019

1020-
// Don't add any new variables to the subprogram.
1021-
DB.finalizeSubprogram(OutlinedSP);
1022-
10231020
// Attach subprogram to the function.
10241021
F->setSubprogram(OutlinedSP);
10251022
// We're done with the DIBuilder.

llvm/lib/Transforms/IPO/IROutliner.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,6 @@ Function *IROutliner::createFunction(Module &M, OutlinableGroup &Group,
686686
/* Outlined code is optimized code by definition. */
687687
DISubprogram::SPFlagDefinition | DISubprogram::SPFlagOptimized);
688688

689-
// Don't add any new variables to the subprogram.
690-
DB.finalizeSubprogram(OutlinedSP);
691-
692689
// Attach subprogram to the function.
693690
F->setSubprogram(OutlinedSP);
694691
// We're done with the DIBuilder.

llvm/lib/Transforms/Utils/Debugify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ bool llvm::applyDebugifyMetadata(
254254
}
255255
if (ApplyToMF)
256256
ApplyToMF(DIB, F);
257-
DIB.finalizeSubprogram(SP);
258257
}
259258
DIB.finalize();
260259

mlir/lib/ExecutionEngine/VulkanRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <iomanip>
2121
#include <iostream>
2222

23-
inline void emitVulkanError(const char *api, VkResult error) {
23+
static inline void emitVulkanError(const char *api, VkResult error) {
2424
std::cerr << " failed with error code " << error << " when executing " << api;
2525
}
2626

mlir/lib/Query/Matcher/VariantValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class VariantMatcher::VariadicOpPayload : public VariantMatcher::Payload {
3535

3636
std::optional<DynMatcher> getDynMatcher() const override {
3737
std::vector<DynMatcher> dynMatchers;
38-
for (auto variantMatcher : args) {
38+
for (const auto &variantMatcher : args) {
3939
std::optional<DynMatcher> dynMatcher = variantMatcher.getDynMatcher();
4040
if (dynMatcher)
4141
dynMatchers.push_back(dynMatcher.value());

0 commit comments

Comments
 (0)