commit | 78d1583d0b36b7d6d8d10234cdc19ab94adf765a | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue May 26 18:54:04 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue May 26 18:54:04 2009 +0000 |
tree | 6fd6d0fc80be75ca12fcc0ddc17cb6de5c7e1668 | |
parent | 0311d47665bcdd186af6fc1bcfa40cf186ae7b9a [diff] |
When evaluating a VarDecl as a constant or determining whether it is an integral constant expression, maintain a cache of the value and the is-an-ICE flag within the VarDecl itself. This eliminates exponential-time behavior of the Fibonacci template metaprogram. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72428 91177308-0d34-0410-b5e6-96231b3b80d8