Stop relying on MDNode::get() returning self-references
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 7 Dec 2014 21:12:10 +0000 (21:12 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 7 Dec 2014 21:12:10 +0000 (21:12 +0000)
commit16173b7f6c9f3a967c0527f7b8ddc234edd27cd9
tree3129c3de186765d39b5de750a8d762db40beab5e
parent9c51b50a714d06561ac69dc30c394cb3fcef5bb8
Stop relying on MDNode::get() returning self-references

Update for LLVM API change, wherein self-references are not uniqued (and
will never be returned by `MDNode::get()`).  We already have `Id`; just
return it.

This should fix the failing buildbot:

  http://lab.llvm.org:8011/builders/polly-amd64-linux/builds/25167
  http://lab.llvm.org:8011/builders/polly-amd64-linux/builds/25168

llvm-svn: 223620
polly/lib/CodeGen/IRBuilder.cpp