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 481478b commit 7c9885fCopy full SHA for 7c9885f
llvm/include/llvm/SandboxIR/Function.h
@@ -60,7 +60,7 @@ class Function : public GlobalWithNodeAPI<Function, llvm::Function,
60
61
/// Returns the alignment of the given function.
62
MaybeAlign getAlign() const {
63
- return cast<llvm::GlobalVariable>(Val)->getAlign();
+ return cast<llvm::Function>(Val)->getAlign();
64
}
65
66
// TODO: Add missing: setAligment(Align)
0 commit comments