summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-12-04 23:05:21 +0000
committerEric Christopher <echristo@gmail.com>2013-12-04 23:05:21 +0000
commit3b0ce937e580c2ab22ff364f83087eac8cf1434b (patch)
tree0159afc9f4809c44a1c977d5723465799b2767fd
parent038a5e4630e3484897e8b5be0550ba06427bc048 (diff)
downloadbcm5719-llvm-3b0ce937e580c2ab22ff364f83087eac8cf1434b.tar.gz
bcm5719-llvm-3b0ce937e580c2ab22ff364f83087eac8cf1434b.zip
Remove incorrect comment and pointless cast.
llvm-svn: 196427
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ac8eb90378d..7422988e74a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -582,8 +582,7 @@ static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
raw_svector_ostream OS(Str);
OS << '\t' << AP.MAI->getCommentString() << "DEBUG_VALUE: ";
- // cast away const; DIetc do not take const operands for some reason.
- DIVariable V(const_cast<MDNode*>(MI->getOperand(2).getMetadata()));
+ DIVariable V(MI->getOperand(2).getMetadata());
if (V.getContext().isSubprogram()) {
StringRef Name = DISubprogram(V.getContext()).getDisplayName();
if (!Name.empty())
OpenPOWER on IntegriCloud