Merge pull request #622 from jbrodman/shengfu
Fix segfault when using both -g and -MMM
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user