diff options
Diffstat (limited to 'include/llvm/OperandTraits.h')
-rw-r--r-- | include/llvm/OperandTraits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/OperandTraits.h b/include/llvm/OperandTraits.h index 3702a01..7c879c8 100644 --- a/include/llvm/OperandTraits.h +++ b/include/llvm/OperandTraits.h @@ -44,7 +44,7 @@ struct FixedNumOperandTraits { }; template <class U> struct Layout { - struct overlay : prefix, U { + struct overlay : public prefix, public U { overlay(); // DO NOT IMPLEMENT }; }; @@ -55,7 +55,7 @@ struct FixedNumOperandTraits { //===----------------------------------------------------------------------===// template <unsigned ARITY = 1> -struct OptionalOperandTraits : FixedNumOperandTraits<ARITY> { +struct OptionalOperandTraits : public FixedNumOperandTraits<ARITY> { static unsigned operands(const User *U) { return U->getNumOperands(); } |