Fix copy-and-paste-o
authorChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 06:57:53 +0000 (06:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 06:57:53 +0000 (06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Function.cpp

index 654cf547e9abd65f05d3be40c92bcc1884539270..4527372ae75b7ad98157bd755e3ffd13bce05ce8 100644 (file)
@@ -197,8 +197,8 @@ unsigned Function::getIntrinsicID() const {
     break;
   case 'e':
     if (getName() == "llvm.exc.getcurrent")return LLVMIntrinsic::exc_getcurrent;
-    if (getName() == "llvm.exc.rethrow")   return LLVMIntrinsic::exc_getcurrent;
-    if (getName() == "llvm.exc.throw")     return LLVMIntrinsic::exc_getcurrent;
+    if (getName() == "llvm.exc.rethrow")   return LLVMIntrinsic::exc_rethrow;
+    if (getName() == "llvm.exc.throw")     return LLVMIntrinsic::exc_throw;
     break;
   case 'l':
     if (getName() == "llvm.longjmp")  return LLVMIntrinsic::longjmp;