diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-05-27 19:21:29 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-05-27 19:21:29 +0000 |
commit | 599fe7ccc0cbfe761b54039fcc2a7c62d7f84934 (patch) | |
tree | 0404cec178bf18b5d92bd6b4b7603f33ea2a792e /lib/Sema/SemaTemplate.cpp | |
parent | ed961e7fffc268eeace169869f5a059bcbd5fcbd (diff) |
Fix the type of a enum non-type template argument within the instantiation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 97eca48b9f..b15ce295ea 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -1494,7 +1494,7 @@ bool Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, } Converted->push_back(TemplateArgument(StartLoc, Value, - Context.getCanonicalType(IntegerType))); + ParamType->isEnumeralType() ? ParamType : IntegerType)); } return false; |