IRVerifier: Correctly check attribute types
authorTobias Grosser <grosser@fim.uni-passau.de>
Tue, 2 Jul 2013 03:28:10 +0000 (03:28 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Tue, 2 Jul 2013 03:28:10 +0000 (03:28 +0000)
commit068acc549547bebefd40e1dffb505d1a4477572d
tree7765bde3413114be66c1a82ca1ae7c0615545db0
parenta66aacf6d7e57b21dcd9e866d28749567cfba74b
IRVerifier: Correctly check attribute types

Add missing parenthesis such that all and not only the very first attribute
is checked.

Testing this piece of code is not possible with an LLVM-IR test file, as the
LLVM-IR parser has a similar check such that the wrong IR does not even arrive
at the verifier.

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