diff options
| author | Steven Wu <stevenwu@apple.com> | 2015-07-24 02:12:43 +0000 | 
|---|---|---|
| committer | Steven Wu <stevenwu@apple.com> | 2015-07-24 02:12:43 +0000 | 
| commit | ae480ecaec4e4ead2f93954fa052483d254228b9 (patch) | |
| tree | ec3d761ee7d0af9a7b2930c40c04d3dac23531be /clang/test | |
| parent | 57776b8159eb9eeaa2ef43f36b8fbeb3d6b5cf64 (diff) | |
| download | bcm5719-llvm-ae480ecaec4e4ead2f93954fa052483d254228b9.tar.gz bcm5719-llvm-ae480ecaec4e4ead2f93954fa052483d254228b9.zip  | |
Fix the cc1as crash when it outputs assembly
In clang cc1as_main, when the output file type is “asm”, AsmStreamer
owns a formatted_raw_ostream which has a reference to FDOS
(raw_ostream), so AsmStreamer must be closed before FDOS is closed.
llvm-svn: 243085
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Misc/cc1as-asm.s | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Misc/cc1as-asm.s b/clang/test/Misc/cc1as-asm.s new file mode 100644 index 00000000000..af92644073a --- /dev/null +++ b/clang/test/Misc/cc1as-asm.s @@ -0,0 +1,3 @@ +// Run cc1as asm output path just to make sure it works +// REQUIRES: x86-registered-target +// RUN: %clang -cc1as -triple x86_64-apple-macosx10.10.0 -filetype asm %s -o /dev/null  | 

