We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328ce32 commit 5ac026fCopy full SHA for 5ac026f
llvm/lib/IR/Instruction.cpp
@@ -1094,11 +1094,9 @@ bool Instruction::mayThrow(bool IncludePhaseOneUnwind) const {
1094
bool Instruction::mayHaveSideEffects() const {
1095
// Lambda function to check 'NoInline' attribute.
1096
auto hasNoInline = [](const Instruction &I) -> bool {
1097
- if (const CallOrInvokeInst *CI = dyn_cast<CallOrInvokeInst>(&I)) {
1098
- if (CI->getCalledFunction()) {
+ if (const CallOrInvokeInst *CI = dyn_cast<CallOrInvokeInst>(&I))
+ if (CI->getCalledFunction())
1099
return CI->getCalledFunction()->hasFnAttribute(Attribute::NoInline);
1100
- }
1101
1102
return false;
1103
};
1104
return mayWriteToMemory() || mayThrow() || !willReturn() ||
0 commit comments