From 051cd75b6d19f5cf576fa7b6b9c61cb7034c0b3b 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. llvm-svn: 221471 --- llvm/lib/IR/DIBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index fbd1959..2486cce 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/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.7.4