diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-27 23:44:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-27 23:44:36 +0000 |
commit | 64393cfca022da671ea086b6fc497084cd062306 (patch) | |
tree | ddb0616ce9328bacdc9e1da9a083516420233547 /clang/lib/CodeGen/CGCXX.cpp | |
parent | 9bdd03f7da67b60a099237e4885c10d70ff30a7c (diff) | |
download | bcm5719-llvm-64393cfca022da671ea086b6fc497084cd062306.tar.gz bcm5719-llvm-64393cfca022da671ea086b6fc497084cd062306.zip |
Pass a GlobalDecl to setFunctionDefinitionAttributes. NFC.
This just makes a followup patch easier to read.
llvm-svn: 326265
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index 5ef4dc45fba..d50e4bc0551 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -230,7 +230,7 @@ llvm::Function *CodeGenModule::codegenCXXStructor(const CXXMethodDecl *MD, setFunctionDLLStorageClass(GD, Fn); CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo); - setFunctionDefinitionAttributes(MD, Fn); + setFunctionDefinitionAttributes(GD, Fn); SetLLVMFunctionAttributesForDefinition(MD, Fn); return Fn; } |