diff --git a/llvm/include/llvm/Target/TargetRegistry.h b/llvm/include/llvm/Target/TargetRegistry.h index cad49d3c6f14..204d5b0c8f5e 100644 --- a/llvm/include/llvm/Target/TargetRegistry.h +++ b/llvm/include/llvm/Target/TargetRegistry.h @@ -183,7 +183,7 @@ namespace llvm { /// @param T - The target being registered. /// @param Fn - A function to construct an AsmPrinter for the target. static void RegisterAsmPrinter(Target &T, Target::AsmPrinterCtorTy Fn) { - assert(!T.TargetMachineCtorFn && "Constructor already registered!"); + assert(!T.AsmPrinterCtorFn && "Constructor already registered!"); T.AsmPrinterCtorFn = Fn; }