OSDN Git Service

IR: Instruction::setMetadata() should use cast_or_null
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 31 Oct 2014 20:28:04 +0000 (20:28 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 31 Oct 2014 20:28:04 +0000 (20:28 +0000)
commitda8d5586bee0f7ecf7781d74017b0faed0c4e5bd
tree05d748faad135617ce08e888e2b8b17238dcc5c0
parent815275f5de3ce5d79a1d399d2ba86177c4de1aa5
IR: Instruction::setMetadata() should use cast_or_null

Not sure why this assertion didn't fire locally [1], but in r220994
`Instruction::setMetadata()` should be using `cast_or_null`.

[1]: http://lab.llvm.org:8011/builders/llvm-hexagon-elf/builds/12327

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Metadata.cpp