r207994 - Fix some typos

Alp Toker alp at nuanti.com
Mon May 5 12:53:42 PDT 2014


Author: alp
Date: Mon May  5 14:53:42 2014
New Revision: 207994

URL: http://llvm.org/viewvc/llvm-project?rev=207994&view=rev
Log:
Fix some typos

Modified:
    cfe/trunk/include/clang/AST/Type.h
    cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
    cfe/trunk/test/CodeGen/xcore-stringtype.c
    cfe/trunk/test/Sema/warn-unreachable.c

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=207994&r1=207993&r2=207994&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Mon May  5 14:53:42 2014
@@ -4223,7 +4223,7 @@ class PackExpansionType : public Type, p
                     Optional<unsigned> NumExpansions)
     : Type(PackExpansion, Canon, /*Dependent=*/Pattern->isDependentType(),
            /*InstantiationDependent=*/true,
-           /*VariableModified=*/Pattern->isVariablyModifiedType(),
+           /*VariablyModified=*/Pattern->isVariablyModifiedType(),
            /*ContainsUnexpandedParameterPack=*/false),
       Pattern(Pattern),
       NumExpansions(NumExpansions? *NumExpansions + 1: 0) { }

Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=207994&r1=207993&r2=207994&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Mon May  5 14:53:42 2014
@@ -2110,7 +2110,7 @@ static bool isMsLayout(const RecordDecl*
 //   when used as a field or base, will not be aligned if #pragma pack is
 //   still active at the time of use.
 //
-// Known incompatiblities:
+// Known incompatibilities:
 // * all: #pragma pack between fields in a record
 // * 2010 and back: If the last field in a record is a bitfield, every object
 //   laid out after the record will have extra padding inserted before it.  The
@@ -2125,7 +2125,7 @@ static bool isMsLayout(const RecordDecl*
 //   _every_ field getting padding put in front of it, potentially including the
 //   vfptr, leaving the vfprt at a non-zero location which results in a fault if
 //   anything tries to read the vftbl.  The second layout phase also treats
-//   bitfields as seperate entities and gives them each storage rather than
+//   bitfields as separate entities and gives them each storage rather than
 //   packing them.  Additionally, because this phase appears to perform a
 //   (an unstable) sort on the members before laying them out and because merged
 //   bitfields have the same address, the bitfields end up in whatever order

Modified: cfe/trunk/test/CodeGen/xcore-stringtype.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/xcore-stringtype.c?rev=207994&r1=207993&r2=207994&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/xcore-stringtype.c (original)
+++ cfe/trunk/test/CodeGen/xcore-stringtype.c Mon May  5 14:53:42 2014
@@ -5,8 +5,8 @@
 
 // In the tests below, some types are not supported by the ABI (_Complex,
 // variable length arrays) and will thus emit no meta data.
-// The 33 tests that do emit typstrings are gathered into '!xcore.typestrings'
-// Please see 'Tools Developement Guide' section 2.16.2 for format details:
+// The 33 tests that do emit typestrings are gathered into '!xcore.typestrings'
+// Please see 'Tools Development Guide' section 2.16.2 for format details:
 // <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>
 
 // CHECK: !xcore.typestrings = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10,

Modified: cfe/trunk/test/Sema/warn-unreachable.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unreachable.c?rev=207994&r1=207993&r2=207994&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unreachable.c (original)
+++ cfe/trunk/test/Sema/warn-unreachable.c Mon May  5 14:53:42 2014
@@ -202,7 +202,7 @@ void trivial_dead_return_void() {
   return; // expected-warning {{'return' will never be executed}}
 }
 
-MyEnum trival_dead_return_enum() {
+MyEnum trivial_dead_return_enum() {
   raze();
   return Value1; // expected-warning {{'return' will never be executed}}
 }
@@ -333,7 +333,7 @@ void trivial_dead_return_void_SUPPRESSED
   return; // no-warning
 }
 
-MyEnum trival_dead_return_enum_SUPPRESSED() {
+MyEnum trivial_dead_return_enum_SUPPRESSED() {
   raze();
   return Value1; // no-warning
 }





More information about the cfe-commits mailing list