diff options
author | Faisal Vali <faisalv@yahoo.com> | 2017-07-17 02:03:21 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2017-07-17 02:03:21 +0000 |
commit | fa8c4ac40846278e478dfe472e74063fca3d3f1e (patch) | |
tree | 3b3765d377cf36a694feaa2e5dbcfbe571c48bdd /lib/CodeGen | |
parent | fc60afa41c22bbd3cde2075d5ade4f8698e99243 (diff) |
Revert changes from my previous refactoring - will need to fix dependencies in clang's extra tooling (such as clang-tidy etc.).
Sorry about that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MacroPPCallbacks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MacroPPCallbacks.cpp b/lib/CodeGen/MacroPPCallbacks.cpp index a6f21d8ddc..6a31dfe53d 100644 --- a/lib/CodeGen/MacroPPCallbacks.cpp +++ b/lib/CodeGen/MacroPPCallbacks.cpp @@ -26,8 +26,8 @@ void MacroPPCallbacks::writeMacroDefinition(const IdentifierInfo &II, if (MI.isFunctionLike()) { Name << '('; - if (!MI.param_empty()) { - MacroInfo::param_iterator AI = MI.param_begin(), E = MI.param_end(); + if (!MI.arg_empty()) { + MacroInfo::arg_iterator AI = MI.arg_begin(), E = MI.arg_end(); for (; AI + 1 != E; ++AI) { Name << (*AI)->getName(); Name << ','; |