[PBQP] Check for out of bound access in DEBUG builds
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Tue, 21 Oct 2014 16:24:21 +0000 (16:24 +0000)
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Tue, 21 Oct 2014 16:24:21 +0000 (16:24 +0000)
commitd57a1ba6305a343b3176925f1493a1998b9a4187
tree4de33f2cd832258e85e823f23d0a4e0a8cf20a5a
parenta5d0ebdbc2df7326032ff57f9354b82a0bb682af
[PBQP] Check for out of bound access in DEBUG builds

It is just too easy to use a virtual register intead of a NodeId without a
compiler warning. This does not fix the fundamental problem, i.e. both
have the same underlying types, but increases the likelyhood to detect it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220303 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/PBQP/Graph.h