commit | 65639284118d54ddf2e51a05d2ffccda567fe246 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Wed Jan 04 23:13:47 2012 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Wed Jan 04 23:13:47 2012 +0000 |
tree | 66b7a7ae4545db073ada0549d8af683c5c2b4231 | |
parent | 08f7760eb2bc25ba3335169be83f7ba492860135 [diff] |
Add an APValue representation for the difference between two address-of-label expressions. Add support to Evaluate and CGExprConstant for generating/handling them. Remove the special-case for such differences in Expr::isConstantInitializer. With that done, remove a bunch of buggy code from CGExprConstant for handling scalar expressions which is no longer necessary. Fixes PR11705. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147561 91177308-0d34-0410-b5e6-96231b3b80d8