Merge pull request #622 from jbrodman/shengfu

Fix segfault when using both -g and -MMM
This commit is contained in:
jbrodman
2013-10-08 16:01:27 -07:00

View File

@@ -936,7 +936,7 @@ Module::AddExportedTypes(const std::vector<std::pair<const Type *,
bool
Module::writeOutput(OutputType outputType, const char *outFileName,
const char *includeFileName) {
if (diBuilder != NULL && outputType != Header) {
if (diBuilder != NULL && (outputType != Header && outputType != Deps)) {
diBuilder->finalize();
lStripUnusedDebugInfo(module);