[llvm] e867951 - IR: Fix assert string message referring to the wrong attribute

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 7 10:14:24 PST 2021


Author: Matt Arsenault
Date: 2021-03-07T13:14:17-05:00
New Revision: e867951de6c954a7bf560b195ce15e6c8d982b34

URL: https://github.com/llvm/llvm-project/commit/e867951de6c954a7bf560b195ce15e6c8d982b34
DIFF: https://github.com/llvm/llvm-project/commit/e867951de6c954a7bf560b195ce15e6c8d982b34.diff

LOG: IR: Fix assert string message referring to the wrong attribute

Added: 
    

Modified: 
    llvm/lib/IR/Function.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 0396fdaba73f..553db4e8f3f1 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -209,7 +209,7 @@ Type *Argument::getParamStructRetType() const {
 }
 
 Type *Argument::getParamByRefType() const {
-  assert(getType()->isPointerTy() && "Only pointers have byval types");
+  assert(getType()->isPointerTy() && "Only pointers have byref types");
   return getParent()->getParamByRefType(getArgNo());
 }
 


        


More information about the llvm-commits mailing list