From: Matt Arsenault Date: Sun, 7 Mar 2021 14:59:11 +0000 (-0500) Subject: IR: Fix assert string message referring to the wrong attribute X-Git-Tag: llvmorg-14-init~13084 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e867951de6c954a7bf560b195ce15e6c8d982b34;p=platform%2Fupstream%2Fllvm.git IR: Fix assert string message referring to the wrong attribute --- diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 0396fda..553db4e 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()); }