]> granicus.if.org Git - llvm/commitdiff
[LibCallsShrinkWrap] More descriptive assertion messages.
authorDavide Italiano <davide@freebsd.org>
Wed, 26 Apr 2017 21:21:02 +0000 (21:21 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 26 Apr 2017 21:21:02 +0000 (21:21 +0000)
Fix a typo while I'm here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301474 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LibCallsShrinkWrap.cpp

index 9497cda2a0d16dc9abd49ad36da0ae5668ca6aa1..5ce8785337c5fb5f9b2e0e1395e8b31cff2ca7d7 100644 (file)
@@ -330,7 +330,7 @@ Value *LibCallsShrinkWrap::generateOneRangeCond(CallInst *CI,
     UpperBound = 11356.0f;
     break;
   default:
-    llvm_unreachable("Should be reach here");
+    llvm_unreachable("Unhandled library call!");
   }
 
   ++NumWrappedOneCond;
@@ -394,7 +394,7 @@ Value *LibCallsShrinkWrap::generateTwoRangeCond(CallInst *CI,
     UpperBound = 11383.0f;
     break;
   default:
-    llvm_unreachable("Should be reach here");
+    llvm_unreachable("Unhandled library call!");
   }
 
   ++NumWrappedTwoCond;
@@ -483,7 +483,7 @@ Value *LibCallsShrinkWrap::generateCondForPow(CallInst *CI,
 
 // Wrap conditions that can potentially generate errno to the library call.
 void LibCallsShrinkWrap::shrinkWrapCI(CallInst *CI, Value *Cond) {
-  assert(Cond != nullptr && "hrinkWrapCI is not expecting an empty call inst");
+  assert(Cond != nullptr && "ShrinkWrapCI is not expecting an empty call inst");
   MDNode *BranchWeights =
       MDBuilder(CI->getContext()).createBranchWeights(1, 2000);