diff options
author | Richard Trieu <rtrieu@google.com> | 2011-07-15 00:00:51 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-07-15 00:00:51 +0000 |
commit | e5adf59d3a2699752d4981f03927459a38b2df18 (patch) | |
tree | c6e3bca8ab7158296553badc21d13d3334be2809 /lib/CodeGen/CodeGenModule.cpp | |
parent | e27eb59cb387de287f0a9b9a4aee24ffe026cb5d (diff) |
Remove warnings of constant operands of logical operators from template instantiations. Upon instantiation of template, value-dependent parameters are replaced by equivalent literals, so code like:
template<unsigned int A, unsigned int B> struct S {
int foo() {
int x = A && B;
}
}
will not warn on A && B on every instantiation. This will still warn on other cases inside templates, which will be caught on checking the template definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions