r221712 - Revert "IR: MDNode => Value: Update for LLVM API change in r221375"
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Nov 11 13:31:03 PST 2014
Author: dexonsmith
Date: Tue Nov 11 15:31:03 2014
New Revision: 221712
URL: http://llvm.org/viewvc/llvm-project?rev=221712&view=rev
Log:
Revert "IR: MDNode => Value: Update for LLVM API change in r221375"
This reverts commit r221376.
The API change was reverted in r221711.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=221712&r1=221711&r2=221712&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Tue Nov 11 15:31:03 2014
@@ -3459,7 +3459,7 @@ void CodeGenModule::EmitCoverageFile() {
llvm::MDString *CoverageFile =
llvm::MDString::get(Ctx, getCodeGenOpts().CoverageFile);
for (int i = 0, e = CUNode->getNumOperands(); i != e; ++i) {
- llvm::Value *CU = CUNode->getOperand(i);
+ llvm::MDNode *CU = CUNode->getOperand(i);
llvm::Value *node[] = { CoverageFile, CU };
llvm::MDNode *N = llvm::MDNode::get(Ctx, node);
GCov->addOperand(N);
More information about the cfe-commits
mailing list