aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2012-09-26 06:35:17 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2012-09-26 06:35:17 +0000
commitc5e3df7d9951502fe016445f1c93dc9a3efea4df (patch)
treeb3d06380999ab0414329480e603c82b4a52cf876
parent732cdf383f9030ff2b9fb28dfbdae2285ded80c6 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164665 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Headers/unwind.h2
-rw-r--r--test/Headers/unwind.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h
index a0659203b1..6520b8316f 100644
--- a/lib/Headers/unwind.h
+++ b/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/test/Headers/unwind.c b/test/Headers/unwind.c
new file mode 100644
index 0000000000..2aec9d4c2d
--- /dev/null
+++ b/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