diff --git a/llvm/include/llvm/Target/TargetMachineRegistry.h b/llvm/include/llvm/Target/TargetMachineRegistry.h index a8df7b3f8263..26c4386219f8 100644 --- a/llvm/include/llvm/Target/TargetMachineRegistry.h +++ b/llvm/include/llvm/Target/TargetMachineRegistry.h @@ -48,7 +48,7 @@ namespace llvm { static const char *descof(const entry &Entry) { return Entry.ShortDesc; } }; - struct TargetMachineRegistry : Registry { + struct TargetMachineRegistry : public Registry { /// getClosestStaticTargetForModule - Given an LLVM module, pick the best /// target that is compatible with the module. If no close target can be /// found, this returns null and sets the Error string to a reason.