summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2015-03-30 00:43:56 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2015-03-30 00:43:56 +0000
commite886cfb612c4b25f1b4a4c63682411e77fd1d1f3 (patch)
tree3ec0b64ebbf0405598e2453ecfee5de3db431695 /llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
parentaa660a99579ee12d48878a2c5d6076e86dd30b4f (diff)
downloadbcm5719-llvm-e886cfb612c4b25f1b4a4c63682411e77fd1d1f3.tar.gz
bcm5719-llvm-e886cfb612c4b25f1b4a4c63682411e77fd1d1f3.zip
Add check for kind of UnqualifiedId in Declarator::isStaticMember()
Method CXXMethodDecl::isStaticOverloadedOperator expects Operator field from the struct OperatorFunctionId, which is a member of the union in the class UnqualifiedId. If the kind of UnqualifiedId is not checked, there is no guarantee that the value that this method receives will be correct, because it can be the value of another union member and not OperatorFunctionId. This bug manifests itself when running make check-all on mips64 BE. This fix resolves the following regression tests: Clang :: CXX/special/class.dtor/p9.cpp Clang :: CodeGenCXX/2006-09-12-OpaqueStructCrash.cpp Clang :: CodeGenCXX/ctor-dtor-alias.cpp Clang :: CodeGenCXX/debug-info-windows-dtor.cpp Clang :: CodeGenCXX/dllexport-members.cpp Clang :: CodeGenCXX/dllexport.cpp Patch by Violeta Vukobrat. Differential Revision: http://reviews.llvm.org/D8437 llvm-svn: 233508
Diffstat (limited to 'llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud