OSDN Git Service

We have an assertion that checks that we do not encode null values into the
authorChris Lattner <sabre@nondot.org>
Fri, 7 Apr 2006 05:00:02 +0000 (05:00 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Apr 2006 05:00:02 +0000 (05:00 +0000)
commitd2cfb7a670aca39c53de892c14cfa7d1267c9826
tree769259950a9d9570dd70c860c7d7cbe84551640a
parentf38d47144572275396e6e6611fa5e181e79b2944
We have an assertion that checks that we do not encode null values into the
.bc file if they are supposed to be implicit.  This is cool, except that it
checked *after* constant expr folding: improving constant expr folding could
cause the .bc reader to assert out on old .bc files.  Move the check so that
it checks all simple constants, but no constantexprs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Reader/Reader.cpp