mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 12:21:37 +00:00
The personality function should be a Function* and not just a Value*.
llvm-svn: 136392
This commit is contained in:
1 parent
a3e41533f2
commit
4f027233d2
7 files changed
+23
-16
No files matched your search
@@ -2539,7 +2539,8 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
|
||||
bool IsCleanup = !!Record[Idx++];
|
||||
unsigned NumClauses = Record[Idx++];
|
||||
LandingPadInst *LP = LandingPadInst::Create(Ty, PersFn, NumClauses);
|
||||
LandingPadInst *LP = LandingPadInst::Create(Ty, cast<Function>(PersFn),
|
||||
NumClauses);
|
||||
LP->setCleanup(IsCleanup);
|
||||
for (unsigned J = 0; J != NumClauses; ++J) {
|
||||
LandingPadInst::ClauseType CT =
|
||||
|
||||
Reference in new issue
Block a user