[llvm-bugs] [Bug 33930] New: Assertion `OpN.isUniqued() && "Only uniqued operands cannot be mapped immediately"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 25 12:47:53 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33930

            Bug ID: 33930
           Summary: Assertion `OpN.isUniqued() && "Only uniqued operands
                    cannot be mapped immediately"' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Transformation Utilities
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18845
  --> https://bugs.llvm.org/attachment.cgi?id=18845&action=edit
repro script

Crashes with trunk r308954.  Okay with 4.0, haven't tried 5.0.

$ cat bz181281.cpp
struct Alpha {
  virtual void bravo(...);
};
struct Charlie {
  virtual ~Charlie() {}
};
struct CharlieImpl : Charlie, Alpha {
  void bravo(...) {}
} delta;

$ clang -c -g bz181281.cpp
clang-5.0:
/home/probinson/projects/llvm-org/trunk/llvm/lib/Transforms/Utils/ValueMapper.cpp:640:
llvm::MDNode*
{anonymous}::MDNodeMapper::visitOperands({anonymous}::MDNodeMapper::UniquedGraph&,
const llvm::MDOperand*&, llvm::MDNode::op_iterator, bool&): Assertion
`OpN.isUniqued() && "Only uniqued operands cannot be mapped immediately"'
failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170725/6c839a08/attachment.html>


More information about the llvm-bugs mailing list