We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98feff6 commit 8929bc7Copy full SHA for 8929bc7
IGC/VectorCompiler/lib/PassPluginLibrary/Plugin.cpp
@@ -55,7 +55,7 @@ void registerPluginPasses(PassBuilder &PB) {
55
MAM.registerPass([&] { return GenXBackendConfigPass(); });
56
});
57
58
- auto *BC = new GenXBackendConfig;
+ auto BC = std::make_shared<GenXBackendConfig>();
59
60
const TargetOptions Options;
61
auto TheTriple = Triple("genx64-unknown-unknown");
@@ -64,7 +64,7 @@ void registerPluginPasses(PassBuilder &PB) {
64
std::string FeaturesStr = "";
65
66
llvm::TargetMachine *TM =
67
- GetTargetMachine(TheTriple, CPUStr, FeaturesStr, Options);
+ GetTargetMachine(std::move(TheTriple), CPUStr, FeaturesStr, Options);
68
69
auto *GTM = static_cast<GenXTargetMachine *>(TM);
70
0 commit comments