Skip to content

Commit f999b32

Browse files
authored
[DirectX] Add missing Analysis usage to DXILResourceMDWrapper
This analysis can't be used with other analyses if this isn't set. Pull Request: #104244
1 parent 8becb80 commit f999b32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/DirectX/DXILResourceAnalysis.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class DXILResourceMDWrapper : public ModulePass {
5757
/// Calculate the DXILResource for the module.
5858
bool runOnModule(Module &M) override;
5959

60+
void getAnalysisUsage(AnalysisUsage &AU) const override {
61+
AU.setPreservesAll();
62+
}
63+
6064
void print(raw_ostream &O, const Module *M = nullptr) const override;
6165
};
6266
} // namespace llvm

0 commit comments

Comments
 (0)