aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-11-09 15:06:14 +0100
committerTyker <tyker1@outlook.com>2020-11-09 16:39:59 +0100
commitd093401a2617d3c46aaed9eeaecf877e3ae1a9f1 (patch)
tree8219819a008a8bc301a94da385a25c4fb5bac003 /clang/lib/CodeGen/CodeGenModule.cpp
parentd631e5240c9a8ed6bc62e638b72214d030d564aa (diff)
downloadllvm-d093401a2617d3c46aaed9eeaecf877e3ae1a9f1.zip
llvm-d093401a2617d3c46aaed9eeaecf877e3ae1a9f1.tar.gz
llvm-d093401a2617d3c46aaed9eeaecf877e3ae1a9f1.tar.bz2
[NFC] Remove string parameter of annotation attribute from AST childs.
this simplifies using annotation attributes when using clang as library
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index d8b819c..92b2b5c 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2391,7 +2391,6 @@ llvm::Constant *CodeGenModule::EmitAnnotationLineNo(SourceLocation L) {
llvm::Constant *CodeGenModule::EmitAnnotationArgs(const AnnotateAttr *Attr) {
ArrayRef<Expr *> Exprs = {Attr->args_begin(), Attr->args_size()};
- Exprs = Exprs.drop_front();
if (Exprs.empty())
return llvm::ConstantPointerNull::get(Int8PtrTy);