diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-12 22:20:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-12 22:20:26 +0000 |
commit | c971f8694661776ecdec2ccc33fbe0333eeaf191 (patch) | |
tree | d3f2b68258b1409f9b5cee2f406605bbe2a05a9a /lib/Sema/SemaTemplate.cpp | |
parent | e6fbdf538bc50122876639e08a1401e2bc9555ba (diff) |
Store the type of the integral value within a TemplateArgument, so that we can more efficiently reconstruct an IntegerLiteral from it during template instantiation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index ea91a3836a..6fc4515571 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -1280,7 +1280,8 @@ bool Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, IntegerType->isSignedIntegerType()); CanonicalArg = Value; - Converted->push_back(TemplateArgument(StartLoc, CanonicalArg)); + Converted->push_back(TemplateArgument(StartLoc, CanonicalArg, + Context.getCanonicalType(IntegerType))); } return false; |