diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-07-28 21:14:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-07-28 21:14:13 +0000 |
commit | 4f027233d21d4de4970c7c28bcbfb28d51221b0a (patch) | |
tree | 8571136ac11f75739079a747ba8d180c517dcf00 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | a3e41533f29ed6f15e1397a92528030523a258e4 (diff) | |
download | bcm5719-llvm-4f027233d21d4de4970c7c28bcbfb28d51221b0a.tar.gz bcm5719-llvm-4f027233d21d4de4970c7c28bcbfb28d51221b0a.zip |
The personality function should be a Function* and not just a Value*.
llvm-svn: 136392
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 4b83958e784..bab33ed2576 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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 = |