Fix segfault when using both -g and -MMM

This commit is contained in:
james.brodman
2013-10-08 18:27:03 -04:00
parent 0439605e94
commit 44912e6b1e

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);