diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-05-26 18:54:04 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-05-26 18:54:04 +0000 |
| commit | 78d1583d0b36b7d6d8d10234cdc19ab94adf765a (patch) | |
| tree | 6fd6d0fc80be75ca12fcc0ddc17cb6de5c7e1668 /lib/CodeGen/CGExprConstant.cpp | |
| 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
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
