summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Frontend/FrontendActionTest.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-18 02:12:44 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-18 02:12:44 +0000
commit9543c40df14a51e2091bcf852588c087b72d4afa (patch)
treed5c92d9019764cf3eb3fd804cbb79fe191b5d9fc /clang/unittests/Frontend/FrontendActionTest.cpp
parent43e7f31f11ab8a8ce941a720c8198c9094bea4ea (diff)
downloadbcm5719-llvm-9543c40df14a51e2091bcf852588c087b72d4afa.tar.gz
bcm5719-llvm-9543c40df14a51e2091bcf852588c087b72d4afa.zip
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. llvm-svn: 125818
Diffstat (limited to 'clang/unittests/Frontend/FrontendActionTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud