From 45909778e7be956006d43a7cc22396732fb2264b Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sat, 28 Feb 2015 21:58:10 +0000 Subject: [PATCH] Fix buildbot issues for MDScope::getFile() after r230871 I hope this extra cast will make everyone happy... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230872 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/DebugInfoMetadata.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/IR/DebugInfoMetadata.h b/include/llvm/IR/DebugInfoMetadata.h index 1f47f8a1cc3..07cb56d8328 100644 --- a/include/llvm/IR/DebugInfoMetadata.h +++ b/include/llvm/IR/DebugInfoMetadata.h @@ -337,7 +337,8 @@ public: /// this. Otherwise, return the first operand, which is where all other /// subclasses store their file pointer. Metadata *getFile() const { - return isa(this) ? const_cast(this) : getOperand(0); + return isa(this) ? const_cast(this) + : static_cast(getOperand(0)); } static bool classof(const Metadata *MD) { -- 2.34.1