When an error occurs while building a module on demand, provide "While
building module 'Foo' imported from..." notes (the same we we provide
"In file included from..." notes) in the diagnostic, so that we know
how this module got included in the first place. This is part of
<rdar://problem/12696425>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169021 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Modules/epic-fail.m b/test/Modules/epic-fail.m
index 7d2cdcf..32ac52d 100644
--- a/test/Modules/epic-fail.m
+++ b/test/Modules/epic-fail.m
@@ -4,8 +4,10 @@
 @__experimental_modules_import Module;
 @__experimental_modules_import DependsOnModule;
 
+// CHECK: While building module 'Module' imported from
 // CHECK: error: expected ';' after top level declarator
 // CHECK: note: expanded from macro 'getModuleVersion'
 // CHECK: fatal error: could not build module 'Module'
+// CHECK: While building module 'DependsOnModule' imported from
 // CHECK: fatal error: could not build module 'Module'
 // CHECK-NOT: error: