Skip to content

Assertion `OpN.isUniqued() && "Only uniqued operands cannot be mapped immediately"' failed. #33277

Closed
@pogo59

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzilla

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions