Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-05-02 Thread Douglas Yung via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268344: Adding a test for a compiler crash that was fixed in r248069. (authored by dyung). Changed prior to commit: http://reviews.llvm.org/D19048?vs=55495&id=55925#toc Repository: rL LLVM http://re

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Adrian Prantl via cfe-commits
aprantl added a comment. Please make sure that the two DINodes are connected, otherwise LGTM. Thanks! http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 55495. dyung added a comment. Fixed up test and check for that DIImportedEntity and DIModule are present in the generated output. http://reviews.llvm.org/D19048 Files: test/Modules/Inputs/getSourceDescriptor-crash/h1.h test/Modules/Inputs/getSourceDescri

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung added inline comments. Comment at: test/Modules/getSourceDescriptor-crash.cpp:6 @@ +5,2 @@ + +// CHECK: DIModule2 aprantl wrote: > This doesn't actually appear in the output :-) > You probably want to at least check for the correct name of the module and >

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Adrian Prantl via cfe-commits
aprantl added inline comments. Comment at: test/Modules/getSourceDescriptor-crash.cpp:6 @@ +5,2 @@ + +// CHECK: DIModule2 This doesn't actually appear in the output :-) You probably want to at least check for the correct name of the module and for the DIImportedE

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 55460. dyung added a comment. Change test to not use the driver. http://reviews.llvm.org/D19048 Files: test/Modules/Inputs/getSourceDescriptor-crash/h1.h test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap test/Modules/getSourceDescriptor-cra

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 55457. dyung added a comment. Modified the test to emit llvm assembly and check for the presence of a DIModule in the output. http://reviews.llvm.org/D19048 Files: test/Modules/Inputs/getSourceDescriptor-crash/h1.h test/Modules/Inputs/getSourceDescriptor

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Adrian Prantl via cfe-commits
> On Apr 27, 2016, at 7:27 PM, Douglas Yung wrote: > > dyung added a comment. > > In http://reviews.llvm.org/D19048#414568, @aprantl wrote: > >> Thanks! >> >> Is there anything meaningful that could be CHECKed here? >> Usually a crash means that we previously had a code path without test >>

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Paul Robinson via cfe-commits
probinson added a subscriber: probinson. Comment at: test/Modules/getSourceDescriptor-crash.cpp:1 @@ +1,2 @@ +// RUN: %clang -I %S/Inputs/getSourceDescriptor-crash -c -g -fimplicit-module-maps %s + Should run %clang_cc1 not the driver. http://reviews.llvm.org/

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Douglas Yung via cfe-commits
dyung added a comment. In http://reviews.llvm.org/D19048#414568, @aprantl wrote: > Thanks! > > Is there anything meaningful that could be CHECKed here? > Usually a crash means that we previously had a code path without test > coverage. This was definitely a code path without test coverage. W

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Adrian Prantl via cfe-commits
aprantl added a comment. Thanks! Is there anything meaningful that could be CHECKed here? Usually a crash means that we previously had a code path without test coverage. http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Douglas Yung via cfe-commits
dyung added a comment. ping http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-20 Thread Douglas Yung via cfe-commits
dyung added a comment. Any thoughts on this test? http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-12 Thread Douglas Yung via cfe-commits
dyung created this revision. dyung added a reviewer: aprantl. dyung added a subscriber: cfe-commits. In our internal testing, we found a crash in the compiler which was reduced to the attached test case. The issue was "fixed" a while back with Adrian's change in r248069 as the code causing the c