diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-11-14 00:35:50 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-11-14 00:35:50 +0000 |
commit | 283bc2ed28f423c29ab57a2b491d2ebdb53a4b12 (patch) | |
tree | b3a1978d772d25c68d2a8b3a9829c74f4abb6f24 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | d318df403a123ac3afe8eecf3bd53cd0c588c8dc (diff) | |
download | bcm5719-llvm-283bc2ed28f423c29ab57a2b491d2ebdb53a4b12.tar.gz bcm5719-llvm-283bc2ed28f423c29ab57a2b491d2ebdb53a4b12.zip |
Allow the use of functions as typeinfo in landingpad clauses
This is one step towards supporting SEH filter functions in LLVM.
llvm-svn: 221954
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 4b4b90b5837..8f8627a0b11 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -4847,7 +4847,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { case Intrinsic::eh_typeid_for: { // Find the type id for the given typeinfo. - GlobalVariable *GV = ExtractTypeInfo(I.getArgOperand(0)); + GlobalValue *GV = ExtractTypeInfo(I.getArgOperand(0)); unsigned TypeID = DAG.getMachineFunction().getMMI().getTypeIDFor(GV); Res = DAG.getConstant(TypeID, MVT::i32); setValue(&I, Res); |