Revert "clover: Fix build after llvm r221375"
authorTom Stellard <thomas.stellard@amd.com>
Wed, 12 Nov 2014 17:28:34 +0000 (12:28 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 12 Nov 2014 17:30:08 +0000 (12:30 -0500)
This reverts commit cd93d82ba9ec8cd8e4f54bbee16d7b47c542de71.

llvm r221375 was reverted, so this commit needs to be too.

src/gallium/state_trackers/clover/llvm/invocation.cpp

index 3a4fcf0bc8b1f6312c6705a4c56cd31f82af464c..e9538224bf6730d276aefac4499f8d4624a9b8d3 100644 (file)
@@ -282,11 +282,7 @@ namespace {
 
       for (unsigned i = 0; i < kernel_node->getNumOperands(); ++i) {
          kernels.push_back(llvm::dyn_cast<llvm::Function>(
-#if HAVE_LLVM >= 0x0306
-                                    kernel_node->getOperandAsMDNode(i)->getOperand(0)));
-#else
                                     kernel_node->getOperand(i)->getOperand(0)));
-#endif
       }
    }