diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-18 02:12:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-18 02:12:44 +0000 |
commit | 8f5667d06a785719691c1139b961411d7f0aedf5 (patch) | |
tree | 19366c905ad4a27f7d1e4f2767d7932b1f0b07f5 /lib/Basic/Targets.cpp | |
parent | 4ae493cccbfbf122ec6ebac0e330232c22fa8489 (diff) |
When we're creating an expression for an integral template argument of
enumeration type, we were generating an integer literal implicitly
casted to the appropriate enumeration type. However, later checks on
that expression would strip the implicit cast.
This commit tweaks the lame hack, by creating an explicit cast instead
of an implicit cast. The right answer is to introduce a
SubstNonTypeTemplateParmExpr expression that acts like the substituted
result. I'll investigate that soon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions