[llvm] 3c32af5 - [StackSafety,NFC] Ignore callee declarations
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 20:56:18 PDT 2020
Author: Vitaly Buka
Date: 2020-06-04T20:55:50-07:00
New Revision: 3c32af58f6c5b78d578e576eeaa81f14c2a71953
URL: https://github.com/llvm/llvm-project/commit/3c32af58f6c5b78d578e576eeaa81f14c2a71953
DIFF: https://github.com/llvm/llvm-project/commit/3c32af58f6c5b78d578e576eeaa81f14c2a71953.diff
LOG: [StackSafety,NFC] Ignore callee declarations
It's going to fail FunctionInfo lookup anyway.
Added:
Modified:
llvm/lib/Analysis/StackSafetyAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index 66e05eb3e972..dd4ba86df7ca 100644
--- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -543,7 +543,7 @@ StackSafetyDataFlowAnalysis<CalleeTy>::run() {
const Function *findCalleeInModule(const GlobalValue *GV) {
while (GV) {
- if (GV->isInterposable() || !GV->isDSOLocal())
+ if (GV->isDeclaration() || GV->isInterposable() || !GV->isDSOLocal())
return nullptr;
if (const Function *F = dyn_cast<Function>(GV))
return F;
More information about the llvm-commits
mailing list