fix some warnings, patch by Justin Handville
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42010 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 87f68fe..89da7dc 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -730,6 +730,9 @@
}
}
assert(0 && "getFloatingTypeOfSizeWithinDomain(): illegal domain");
+ //an invalid return value, but the assert
+ //will ensure that this code is never reached.
+ return VoidTy;
}
/// compareFloatingType - Handles 3 different combos: