]> granicus.if.org Git - clang/commitdiff
Add struct keyword before _Unwind_Context.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 26 Sep 2012 06:35:17 +0000 (06:35 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 26 Sep 2012 06:35:17 +0000 (06:35 +0000)
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

lib/Headers/unwind.h
test/Headers/unwind.c [new file with mode: 0644]

index a0659203b15c8bfa6083c1c1911fc7303c9ec5dd..6520b8316f3d6ed3071f0147763af81b762d13e2 100644 (file)
@@ -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 (file)
index 0000000..2aec9d4
--- /dev/null
@@ -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