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 | b970d0ca9d2e7ad8eecc5bdb2aa1bb959317b304 (patch) | |
tree | a9a5fd714013bfadae74e5ff4ac2e5d4ba443f48 /clang/lib/Sema/SemaTemplate.cpp | |
parent | dd772264f45da4ab884134e82def16b93545291e (diff) | |
download | bcm5719-llvm-b970d0ca9d2e7ad8eecc5bdb2aa1bb959317b304.tar.gz bcm5719-llvm-b970d0ca9d2e7ad8eecc5bdb2aa1bb959317b304.zip |
Store the type of the integral value within a TemplateArgument, so that we can more efficiently reconstruct an IntegerLiteral from it during template instantiation
llvm-svn: 66833
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index ea91a3836a5..6fc45155717 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/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; |