[llvm] r221471 - Try to appease MSVC buildbots after r221466.

Frederic Riss friss at apple.com
Thu Nov 6 11:00:47 PST 2014


Author: friss
Date: Thu Nov  6 13:00:47 2014
New Revision: 221471

URL: http://llvm.org/viewvc/llvm-project?rev=221471&view=rev
Log:
Try to appease MSVC buildbots after r221466.

Modified:
    llvm/trunk/lib/IR/DIBuilder.cpp

Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=221471&r1=221470&r2=221471&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Thu Nov  6 13:00:47 2014
@@ -194,7 +194,7 @@ DIImportedEntity DIBuilder::createImport
                                                       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<Value*>(DIType(Decl).getRef()) : Decl;
   return ::createImportedModule(VMContext, dwarf::DW_TAG_imported_declaration,
                                 Context, V, Line, Name,
                                 AllImportedModules);





More information about the llvm-commits mailing list