[Fixed Point Arithmetic] Fix for clang-tools-extra warning

Fix for warnings generated on unhandled enum value `STK_FixedPoint`.

Differential Revision: https://reviews.llvm.org/D53299

llvm-svn: 344549
This commit is contained in:
Leonard Chan 2018-10-15 20:00:03 +00:00
parent 88ccbd7543
commit 0f11b73f96
1 changed files with 39 additions and 38 deletions

View File

@ -60,6 +60,7 @@ static StringRef getValueOfValueInit(const QualType InitType) {
case Type::STK_IntegralComplex:
return getValueOfValueInit(
InitType->getAs<ComplexType>()->getElementType());
case Type::STK_FixedPoint:
switch (InitType->getAs<BuiltinType>()->getKind()) {
case BuiltinType::ShortAccum: