From 774442162d4a314b32ec95ef31a296df66fde30a Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Wed, 26 Sep 2012 06:35:17 +0000 Subject: [PATCH] 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 --- clang/lib/Headers/unwind.h | 2 +- clang/test/Headers/unwind.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 clang/test/Headers/unwind.c diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h index a065920..6520b83 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 0000000..2aec9d4 --- /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 -- 2.7.4