summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-03-19 18:47:03 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-03-19 18:47:03 +0000
commitc383960be9ef8e9e761555cb66917c5d6c9595f0 (patch)
tree8ed3e47ff6378cc72a427d863dc31ce67852a3b6 /llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
parent0f1bc60d513e7bd6e6da5bb86a24c7bdcb822c96 (diff)
downloadbcm5719-llvm-c383960be9ef8e9e761555cb66917c5d6c9595f0.tar.gz
bcm5719-llvm-c383960be9ef8e9e761555cb66917c5d6c9595f0.zip
Don't replace macro usage if macro body has NULL
In case of macro body expansion, check to see if the macro is named NULL and don't replace inside the macro body. This fixes the case when NULL appears inside the macro body and the transform replaces the usage of the macro with nullptr. This is an easy fix for the problem for now and we should analyze the macro body to see if it expands to only NullToPointer in the future for a more robust solution that takes care of user defined macros that behaves like NULL. Other changes: - Moved complex macro tests to macros.cpp - Added new test cases. - Added checks to make sure that the macro bodies are not modified by the tool. Fixes: PR15396 Author: Tareq A Siraj <tareq.a.siraj@intel.com> llvm-svn: 177422
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud