aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringMap.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-12-27 01:17:40 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-12-27 01:17:40 +0000
commit4c131387c3104dcac8b16c65ac8ef867bfc26e67 (patch)
tree24bb5a04d427c83d271966d5c13e87a340534c01 /llvm/lib/Support/StringMap.cpp
parent2b14b80b6043650d259b85e419f2c80f97c4f1e3 (diff)
downloadllvm-4c131387c3104dcac8b16c65ac8ef867bfc26e67.zip
llvm-4c131387c3104dcac8b16c65ac8ef867bfc26e67.tar.gz
llvm-4c131387c3104dcac8b16c65ac8ef867bfc26e67.tar.bz2
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
Diffstat (limited to 'llvm/lib/Support/StringMap.cpp')
0 files changed, 0 insertions, 0 deletions