From e867951de6c954a7bf560b195ce15e6c8d982b34 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 7 Mar 2021 09:59:11 -0500 Subject: [PATCH] IR: Fix assert string message referring to the wrong attribute --- llvm/lib/IR/Function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.7.4