Skip to content

Commit

Permalink
[CIR] Use CXXMethodDecl::isPureVirtual instead of isPure
Browse files Browse the repository at this point in the history
This is to follow the change from
llvm/llvm-project#78463
llvm/llvm-project@e90e43f
  • Loading branch information
keryell committed Jan 23, 2024
1 parent a1b8523 commit ba06c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CIR/CodeGen/CIRGenVTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void CIRGenVTables::addVTableComponent(ConstantArrayBuilder &builder,

mlir::cir::FuncOp fnPtr;
// Pure virtual member functions.
if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) {
if (cast<CXXMethodDecl>(GD.getDecl())->isPureVirtual()) {
llvm_unreachable("NYI");
// if (!PureVirtualFn)
// PureVirtualFn =
Expand Down

0 comments on commit ba06c76

Please sign in to comment.