diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-07-28 02:27:12 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-07-28 02:27:12 +0000 |
| commit | 4c93488999e930d290e6b8b9ad4dd84aaf89fb11 (patch) | |
| tree | 96b8eb76174cb22b729f6a8456cc960afd1711b5 /llvm/lib/VMCore/Core.cpp | |
| parent | a8f04e303479adaf8518c27be9052453d87e1b56 (diff) | |
| download | bcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.tar.gz bcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.zip | |
Make sure that the landingpad instruction takes a Constant* as the clause's value.
llvm-svn: 136326
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 6664afc1882..5e93c73a344 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -1715,7 +1715,7 @@ void LLVMAddClause(LLVMValueRef LandingPad, LLVMLandingPadClauseTy ClauseTy, LLVMValueRef ClauseVal) { unwrap<LandingPadInst>(LandingPad)-> addClause(static_cast<LandingPadInst::ClauseType>(ClauseTy), - unwrap(ClauseVal)); + cast<Constant>(unwrap(ClauseVal))); } void LLVMSetCleanup(LLVMValueRef LandingPad, LLVMBool Val) { |

