diff options
author | Eric Christopher <echristo@gmail.com> | 2013-12-04 23:05:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-12-04 23:05:21 +0000 |
commit | 3b0ce937e580c2ab22ff364f83087eac8cf1434b (patch) | |
tree | 0159afc9f4809c44a1c977d5723465799b2767fd /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 038a5e4630e3484897e8b5be0550ba06427bc048 (diff) | |
download | bcm5719-llvm-3b0ce937e580c2ab22ff364f83087eac8cf1434b.tar.gz bcm5719-llvm-3b0ce937e580c2ab22ff364f83087eac8cf1434b.zip |
Remove incorrect comment and pointless cast.
llvm-svn: 196427
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
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()) |