================
@@ -5794,20 +5821,36 @@ 
CIRToLLVMVTableGetVirtualFnByOffsetOpLowering::matchAndRewrite(
 mlir::LogicalResult CIRToLLVMVTableGetOffsetOpLowering::matchAndRewrite(
     cir::VTableGetOffsetOp op, OpAdaptor adaptor,
     mlir::ConversionPatternRewriter &rewriter) const {
-  assert(!cir::MissingFeatures::vtableRelativeLayout());
-  if (usesRelativeVTables(op->getParentOfType<mlir::ModuleOp>()))
-    return op.emitError("NYI: offset lookup in a relative layout vtable");
-
   mlir::Type resultType = getTypeConverter()->convertType(op.getType());
   if (!resultType)
     return emitTypeConversionError(op, op.getType());
 
   // The entry is the offset itself: load it from its slot, addressed by its
   // byte offset.
-  auto ptrTy = mlir::LLVM::LLVMPointerType::get(rewriter.getContext());
+  mlir::ModuleOp module = op->getParentOfType<mlir::ModuleOp>();
----------------
erichkeane wrote:

So it could go each way.  It is a context sensitive keyword, so it won't cause 
a problem here (even in future revisions of the language).  BUT 'dumb' editors 
obviously highlight it anyway.

I decided to make my 'vim' highlight script 'smarter' so it'll highlight for me 
too now.  I grabbed it copy/paste from elsewhere in this file.

I'll fix up the stuff I added recently.

https://github.com/llvm/llvm-project/pull/243798
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to