diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp b/gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp index 31c1b3f1562..e1a23f59858 100644 --- a/gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp +++ b/gnu/llvm/tools/clang/lib/AST/ExprObjC.cpp @@ -1,4 +1,4 @@ -//===--- ExprObjC.cpp - (ObjC) Expression AST Node Implementation ---------===// +//===- ExprObjC.cpp - (ObjC) Expression AST Node Implementation -----------===// // // The LLVM Compiler Infrastructure // @@ -12,8 +12,15 @@ //===----------------------------------------------------------------------===// #include "clang/AST/ExprObjC.h" - #include "clang/AST/ASTContext.h" +#include "clang/AST/SelectorLocationsKind.h" +#include "clang/AST/Type.h" +#include "clang/AST/TypeLoc.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/Support/ErrorHandling.h" +#include <algorithm> +#include <cassert> +#include <cstdint> using namespace clang; @@ -45,7 +52,6 @@ ObjCArrayLiteral *ObjCArrayLiteral::Create(const ASTContext &C, ObjCArrayLiteral *ObjCArrayLiteral::CreateEmpty(const ASTContext &C, unsigned NumElements) { - void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); return new (Mem) ObjCArrayLiteral(EmptyShell(), NumElements); } |
