diff options
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp b/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp index 496cfbd7955..58fa95b54ac 100644 --- a/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp @@ -371,7 +371,7 @@ void GenericToNVVM::remapNamedMDNode(Module *M, NamedMDNode *N) { // Check if any operand is or contains a global variable in GVMap, and thus // converted to another value. for (unsigned i = 0; i < NumOperands; ++i) { - MDNode *Operand = cast<MDNode>(N->getOperand(i)); + MDNode *Operand = N->getOperand(i); MDNode *NewOperand = remapMDNode(M, Operand); OperandChanged |= Operand != NewOperand; NewOperands.push_back(NewOperand); |