]> granicus.if.org Git - clang/commitdiff
IR: MDNode => Value: Update for LLVM API change in r221375
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 5 Nov 2014 18:16:35 +0000 (18:16 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 5 Nov 2014 18:16:35 +0000 (18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221376 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 7ecd95ea2046745a3fd2a3f8d38e18002f21f1b6..fb5ffc9ba9547a31c7f1735d8df8a24d8b2fd2d0 100644 (file)
@@ -3451,7 +3451,7 @@ void CodeGenModule::EmitCoverageFile() {
       llvm::MDString *CoverageFile =
           llvm::MDString::get(Ctx, getCodeGenOpts().CoverageFile);
       for (int i = 0, e = CUNode->getNumOperands(); i != e; ++i) {
-        llvm::MDNode *CU = CUNode->getOperand(i);
+        llvm::Value *CU = CUNode->getOperand(i);
         llvm::Value *node[] = { CoverageFile, CU };
         llvm::MDNode *N = llvm::MDNode::get(Ctx, node);
         GCov->addOperand(N);