diff options
author | Alexander Kornienko <alexfh@google.com> | 2012-08-29 16:56:24 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2012-08-29 16:56:24 +0000 |
commit | e40c4238a572bf8241a04e0005f70550cbfc1cfb (patch) | |
tree | a8310655aa26021dd16b9b1eb053a3ac8e8bb190 /lib/Basic/Targets.cpp | |
parent | 260e5067f3cca1630c6ed88757a15b23622b52d1 (diff) |
Fixed a problem with #pragma push_macro/pop_macro implementation.
Summary:
The problem was with the following sequence:
#pragma push_macro("long")
#undef long
#pragma pop_macro("long")
in case when "long" didn't represent a macro.
Fixed crash and removed code duplication for #undef/pop_macro case. Added regression tests.
Reviewers: doug.gregor, klimek
Reviewed By: doug.gregor
CC: cfe-commits, chapuni
Differential Revision: http://llvm-reviews.chandlerc.com/D31
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions