Assertion `OpN.isUniqued() && "Only uniqued operands cannot be mapped immediately"' failed. #33277
Closed
Description
| Bugzilla Link | 33930 |
| Resolution | FIXED |
| Resolved on | Oct 31, 2017 16:00 |
| Version | trunk |
| OS | Linux |
| Blocks | #33840 |
| Attachments | repro script, full traceback |
| CC | @adrian-prantl,@berolinux,@zmodem,@Keno,@rgal,@tstellar,@wjristow,@wolfy1961 |
Extended Description
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.
Activity