From 2dc073504987f16e0ab16b844950d250927c1726 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Thu, 6 Nov 2014 19:00:47 +0000 Subject: [PATCH] Try to appease MSVC buildbots after r221466. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221471 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/DIBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index fbd19596377..2486ccef951 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -194,7 +194,7 @@ DIImportedEntity DIBuilder::createImportedDeclaration(DIScope Context, unsigned Line, StringRef Name) { // Make sure to use the unique identifier based metadata reference for // types that have one. - Value *V = Decl.isType() ? DIType(Decl).getRef() : Decl; + Value *V = Decl.isType() ? static_cast(DIType(Decl).getRef()) : Decl; return ::createImportedModule(VMContext, dwarf::DW_TAG_imported_declaration, Context, V, Line, Name, AllImportedModules); -- 2.34.1