aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-18 20:31:03 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-18 20:31:03 +0000
commitbb378cbf04e343fb15ae3611a153dde60671b514 (patch)
tree95c53e77a65e5f87b9e19a07595f28efeb69b9ef /lib/CodeGen/CGExprConstant.cpp
parent5ffe14ca96bd662de7820f6875d3f04789a640c1 (diff)
Use CK_BitCast for member function pointer casts. Fixes PR5138.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--lib/CodeGen/CGExprConstant.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp
index 7f540c3c06..fc3748c8e3 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -542,7 +542,11 @@ public:
return CS;
}
}
-
+
+ case CastExpr::CK_BitCast:
+ // This must be a member function pointer cast.
+ return Visit(E->getSubExpr());
+
default: {
// FIXME: This should be handled by the CK_NoOp cast kind.
// Explicit and implicit no-op casts