aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index 4c3f100d74..9372d33788 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -1042,8 +1042,7 @@ Sema::InstantiateClassTemplateSpecialization(
Expr *BitWidth = Field->getBitWidth();
if (InvalidDecl)
BitWidth = 0;
- if (BitWidth &&
- (BitWidth->isTypeDependent() || BitWidth->isValueDependent())) {
+ else if (BitWidth) {
OwningExprResult InstantiatedBitWidth
= InstantiateExpr(BitWidth,
ClassTemplateSpec->getTemplateArgs(),