Skip to content

Commit 7c9885f

Browse files
committed
Fix build again.
1 parent 481478b commit 7c9885f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/SandboxIR/Function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Function : public GlobalWithNodeAPI<Function, llvm::Function,
6060

6161
/// Returns the alignment of the given function.
6262
MaybeAlign getAlign() const {
63-
return cast<llvm::GlobalVariable>(Val)->getAlign();
63+
return cast<llvm::Function>(Val)->getAlign();
6464
}
6565

6666
// TODO: Add missing: setAligment(Align)

0 commit comments

Comments
 (0)