mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Checked return warning from coverity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c2019b245
commit
6817639c74
@ -91,8 +91,9 @@ bool StackProtector::runOnFunction(Function &Fn) {
|
||||
|
||||
Attribute Attr = Fn.getAttributes().getAttribute(
|
||||
AttributeSet::FunctionIndex, "stack-protector-buffer-size");
|
||||
if (Attr.isStringAttribute())
|
||||
Attr.getValueAsString().getAsInteger(10, SSPBufferSize);
|
||||
if (Attr.isStringAttribute() &&
|
||||
Attr.getValueAsString().getAsInteger(10, SSPBufferSize))
|
||||
return false; // Invalid integer string
|
||||
|
||||
++NumFunProtected;
|
||||
return InsertStackProtectors();
|
||||
|
Loading…
Reference in New Issue
Block a user