summaryrefslogtreecommitdiff
path: root/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-12 23:36:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-12 23:36:42 +0000
commitc05006fda51658dc0a2fd551aeceaf90605bfc41 (patch)
tree0724df77e0b9969bfa911b0bbb41533e4ccf0991 /lib/Lex/ModuleMap.cpp
parent9127425f846034f61801c8489e9f170569f82f2a (diff)
downloadclang-c05006fda51658dc0a2fd551aeceaf90605bfc41.tar.gz
clang-c05006fda51658dc0a2fd551aeceaf90605bfc41.tar.bz2
clang-c05006fda51658dc0a2fd551aeceaf90605bfc41.tar.xz
Only allow streaming exactly type 'bool' to a DiagnosticBuilder, not anything
that implicitly converts to 'bool' (such as pointers, and the first operand of ?:). Clean up issues found by this. Patch by Stephan Tolksdorf! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/ModuleMap.cpp')
-rw-r--r--lib/Lex/ModuleMap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp
index beb0bcbbd3..d5e8af95fe 100644
--- a/lib/Lex/ModuleMap.cpp
+++ b/lib/Lex/ModuleMap.cpp
@@ -1282,7 +1282,8 @@ void ModuleMapParser::parseModuleDecl() {
if (ActiveModule) {
Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified)
- << Id[I].first << ActiveModule->getTopLevelModule();
+ << Id[I].first
+ << ActiveModule->getTopLevelModule()->getFullModuleName();
} else {
Diags.Report(Id[I].second, diag::err_mmap_expected_module_name);
}