Skip to content
Commit 4c131387 authored by Nick Lewycky's avatar Nick Lewycky
Browse files

Using Inst->setMetadata(..., NULL) should be safe to remove metadata even when

there is non of that type to remove. This fixes a crasher in the particular
case where the instruction has metadata but no metadata storage in the context
(this is only possible if the instruction has !dbg but no other metadata info).

llvm-svn: 147285
parent 2b14b80b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment