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 | 881c0bb5a3755ab04cb598c47b5941b3e40a2881 (patch) | |
tree | 16d51e64238075205f5b09ca48634a1ad0376b83 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | dda6f1fb000c6bc4bf387b504e4a2f90fe43ca62 (diff) | |
download | llvm-881c0bb5a3755ab04cb598c47b5941b3e40a2881.tar.gz llvm-881c0bb5a3755ab04cb598c47b5941b3e40a2881.tar.bz2 llvm-881c0bb5a3755ab04cb598c47b5941b3e40a2881.tar.xz |
Remove incorrect comment and pointless cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index ac8eb90378..7422988e74 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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()) |