Changes in directory llvm/lib/VMCore:
AutoUpgrade.cpp updated: 1.12 -> 1.13 --- Log message: 1. Handle removal of all arguments for a morphed intrinsic. 2. Remove the declaration of llvm.dbg.declare. --- Diffs of the changes: (+4 -1) AutoUpgrade.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/lib/VMCore/AutoUpgrade.cpp diff -u llvm/lib/VMCore/AutoUpgrade.cpp:1.12 llvm/lib/VMCore/AutoUpgrade.cpp:1.13 --- llvm/lib/VMCore/AutoUpgrade.cpp:1.12 Mon Mar 13 07:07:37 2006 +++ llvm/lib/VMCore/AutoUpgrade.cpp Mon Mar 13 20:00:35 2006 @@ -97,6 +97,9 @@ if (F->getReturnType() != Type::VoidTy) { return M->getOrInsertFunction(Name, Type::VoidTy, NULL); } + } else if (Name == "llvm.dbg.declare") { + F->setName(""); + return NULL; } break; case 'i': @@ -230,7 +233,7 @@ } else Oprnds.push_back(UndefValue::get(NewFnTy->getParamType(i))); } - } else { + } else if (N) { assert(N == (CI->getNumOperands() - 1) && "Upgraded function needs permutation"); for (unsigned i = 0; i != N; ++i) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits