forked from OSchip/llvm-project
Move llvm:🆑:opt's conversion function into the base classes that
actually need that conversion function. Silences a Clang++ warning. llvm-svn: 86148
This commit is contained in:
parent
00c793822e
commit
e076030f0c
|
@ -781,6 +781,8 @@ public:
|
|||
|
||||
DataType &getValue() { check(); return *Location; }
|
||||
const DataType &getValue() const { check(); return *Location; }
|
||||
|
||||
operator DataType() const { return this->getValue(); }
|
||||
};
|
||||
|
||||
|
||||
|
@ -816,6 +818,8 @@ public:
|
|||
DataType &getValue() { return Value; }
|
||||
DataType getValue() const { return Value; }
|
||||
|
||||
operator DataType() const { return getValue(); }
|
||||
|
||||
// If the datatype is a pointer, support -> on it.
|
||||
DataType operator->() const { return Value; }
|
||||
};
|
||||
|
@ -865,8 +869,6 @@ public:
|
|||
|
||||
ParserClass &getParser() { return Parser; }
|
||||
|
||||
operator DataType() const { return this->getValue(); }
|
||||
|
||||
template<class T>
|
||||
DataType &operator=(const T &Val) {
|
||||
this->setValue(Val);
|
||||
|
|
Loading…
Reference in New Issue