Skip to content

Commit 460ac48

Browse files
committed
get rid of duplicated missing feature
1 parent 14e6bc0 commit 460ac48

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clang/include/clang/CIR/MissingFeatures.h

-3
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,6 @@ struct MissingFeatures {
468468
static bool mustProgress() { return false; }
469469

470470
static bool skipTempCopy() { return false; }
471-
472-
// https://clang.llvm.org/docs/PointerAuthentication.html
473-
static bool pointerAuthentication() { return false; }
474471
};
475472

476473
} // namespace cir

clang/lib/CIR/CodeGen/CIRGenExprConst.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ bool ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD,
746746
CGM.getItaniumVTableContext()
747747
.getVTableLayout(VTableClass)
748748
.getAddressPoint(BaseSubobject(CD, Offset));
749-
assert(!cir::MissingFeatures::pointerAuthentication());
749+
assert(!cir::MissingFeatures::ptrAuth());
750750
mlir::ArrayAttr indices = builder.getArrayAttr({
751751
builder.getI32IntegerAttr(0),
752752
builder.getI32IntegerAttr(addressPoint.VTableIndex),

0 commit comments

Comments
 (0)