Skip to content

Commit a671cff

Browse files
committed
[AST] Remove defaulted SmallVector use
There's a bug in the compiler on CentOS 7 which causes the template arguments not to be merged correctly. Use the non-defaulted form until CentOS 7 is no longer supported.
1 parent e54519e commit a671cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ Type TypeBase::lookThroughAllOptionalTypes(SmallVectorImpl<Type> &optionals){
882882
}
883883

884884
unsigned int TypeBase::getOptionalityDepth() {
885-
SmallVector<Type> types;
885+
SmallVector<Type, 4> types;
886886
lookThroughAllOptionalTypes(types);
887887
return types.size();
888888
}

0 commit comments

Comments
 (0)