summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-05-13 18:35:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-05-13 18:35:26 +0000
commit3e80709ef9cedf04f5001d02b26921c9f0d43d5d (patch)
tree31da746b40fe298eea6d93df960258e6bd6633f6 /llvm/lib/AsmParser
parent1ce4ebf7d6fe923249d3cc5ef0840ad3bbe93845 (diff)
downloadbcm5719-llvm-3e80709ef9cedf04f5001d02b26921c9f0d43d5d.tar.gz
bcm5719-llvm-3e80709ef9cedf04f5001d02b26921c9f0d43d5d.zip
[opaque pointer type] Pass the explicit function type down to the instruction constructor when parsing invoke instructions
llvm-svn: 237273
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index e69fa3828ed..398292c2aa1 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -4826,7 +4826,7 @@ bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
// Finish off the Attribute and check them
AttributeSet PAL = AttributeSet::get(Context, Attrs);
- InvokeInst *II = InvokeInst::Create(Callee, NormalBB, UnwindBB, Args);
+ InvokeInst *II = InvokeInst::Create(Ty, Callee, NormalBB, UnwindBB, Args);
II->setCallingConv(CC);
II->setAttributes(PAL);
ForwardRefAttrGroups[II] = FwdRefAttrGrps;
OpenPOWER on IntegriCloud