mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Buildbot Fix.
This method can be called with a '0' argument which checks the return value. However, the method it calls doesn't expect '0' as a valid value. Call the correct method when it's 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfc342d412
commit
59e6586ee0
@ -278,7 +278,8 @@ public:
|
||||
/// @brief Determine if the parameter does not alias other parameters.
|
||||
/// @param n The parameter to check. 1 is the first parameter, 0 is the return
|
||||
bool doesNotAlias(unsigned n) const {
|
||||
return getParamAttributes(n).hasNoAliasAttr();
|
||||
return n != 0 ? getParamAttributes(n).hasNoAliasAttr() :
|
||||
AttributeList.getRetAttributes().hasNoAliasAttr();
|
||||
}
|
||||
void setDoesNotAlias(unsigned n, bool DoesNotAlias = true) {
|
||||
if (DoesNotAlias) addAttribute(n, Attribute::NoAlias);
|
||||
|
Loading…
Reference in New Issue
Block a user