]> granicus.if.org Git - llvm/commit
Verifier: Loosen r233559 check for 'function:' field in MDSubprogram
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 17:04:06 +0000 (17:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 17:04:06 +0000 (17:04 +0000)
commita3dbc680a7134dc64fdf8033699c17e2e4113472
tree14aaec84c6d66b6afeadc1f82742dac2ef1ab04e
parentd3ec0ca17ec7891af2c238f1c19a6d1cf6b250fd
Verifier: Loosen r233559 check for 'function:' field in MDSubprogram

Stop worrying about what the `function:` field is in `MDSubprogram`,
since it could be a bitcast [1].  Just check its type and leave it at
that.

[1]: http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_build/3540/

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