diff options
| author | Logan Chien <tzuhsiang.chien@gmail.com> | 2012-09-26 06:35:17 +0000 |
|---|---|---|
| committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2012-09-26 06:35:17 +0000 |
| commit | 774442162d4a314b32ec95ef31a296df66fde30a (patch) | |
| tree | ab9ca17cc186b2cff5d54d0e457b3382c6828814 /clang | |
| parent | 0a928fa32ea6604caa553c3998301fda00f88433 (diff) | |
| download | bcm5719-llvm-774442162d4a314b32ec95ef31a296df66fde30a.tar.gz bcm5719-llvm-774442162d4a314b32ec95ef31a296df66fde30a.zip | |
Add struct keyword before _Unwind_Context.
In the C programming language, we have to add the
"struct" keyword. Otherwise, the compiler will
emit error message.
llvm-svn: 164665
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Headers/unwind.h | 2 | ||||
| -rw-r--r-- | clang/test/Headers/unwind.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h index a0659203b15..6520b8316f3 100644 --- a/clang/lib/Headers/unwind.h +++ b/clang/lib/Headers/unwind.h @@ -100,7 +100,7 @@ typedef enum { _UVRSR_FAILED = 2 } _Unwind_VRS_Result; -_Unwind_VRS_Result _Unwind_VRS_Get(_Unwind_Context *context, +_Unwind_VRS_Result _Unwind_VRS_Get(struct _Unwind_Context *context, _Unwind_VRS_RegClass regclass, uint32_t regno, _Unwind_VRS_DataRepresentation representation, diff --git a/clang/test/Headers/unwind.c b/clang/test/Headers/unwind.c new file mode 100644 index 00000000000..2aec9d4c2d8 --- /dev/null +++ b/clang/test/Headers/unwind.c @@ -0,0 +1,6 @@ +// RUN: %clang -target arm-unknown-linux-gnueabi %s -fsyntax-only -o - +// RUN: %clang -target i686-unknown-linux %s -fsyntax-only -o - + +#include "unwind.h" +// CHECK-NOT: error +// CHECK-NOT: warning |

