From 5f08b024bef12c3312d1e75f2c2ec5e5f5e0361f Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Thu, 17 Dec 2020 14:17:29 +0100 Subject: add ifdefs for C++ exception handling restoring old behavior without EH support --- lib/Module/IntrinsicCleaner.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Module') diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index cd93b3ec..eaec7722 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -363,6 +363,9 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b, Module &M) { case Intrinsic::dbg_declare: #if LLVM_VERSION_CODE >= LLVM_VERSION(7, 0) case Intrinsic::dbg_label: +#endif +#ifndef SUPPORT_KLEE_EH_CXX + case Intrinsic::eh_typeid_for: #endif case Intrinsic::exp2: case Intrinsic::exp: @@ -399,10 +402,12 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b, Module &M) { dirty = true; break; +#ifdef SUPPORT_KLEE_EH_CXX case Intrinsic::eh_typeid_for: { // Don't lower this, we need it for exception handling break; } +#endif // Warn about any unrecognized intrinsics. default: { -- cgit 1.4.1