diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h index 05a981d2313..a7fc7b7e51e 100644 --- a/include/llvm/IR/Metadata.h +++ b/include/llvm/IR/Metadata.h @@ -693,11 +693,11 @@ protected: MDOperand *mutable_end() { return reinterpret_cast(this); } public: - static inline MDNode *get(LLVMContext &Context, ArrayRef MDs); - static inline MDNode *getIfExists(LLVMContext &Context, - ArrayRef MDs); - static inline MDNode *getDistinct(LLVMContext &Context, - ArrayRef MDs); + static inline MDTuple *get(LLVMContext &Context, ArrayRef MDs); + static inline MDTuple *getIfExists(LLVMContext &Context, + ArrayRef MDs); + static inline MDTuple *getDistinct(LLVMContext &Context, + ArrayRef MDs); /// \brief Return a temporary MDNode /// @@ -881,13 +881,13 @@ private: void eraseFromStoreImpl(); }; -MDNode *MDNode::get(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::get(LLVMContext &Context, ArrayRef MDs) { return MDTuple::get(Context, MDs); } -MDNode *MDNode::getIfExists(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::getIfExists(LLVMContext &Context, ArrayRef MDs) { return MDTuple::getIfExists(Context, MDs); } -MDNode *MDNode::getDistinct(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::getDistinct(LLVMContext &Context, ArrayRef MDs) { return MDTuple::getDistinct(Context, MDs); }