OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ee1c9
)
As suggested by Nick Lewycky, ignore debugging intrinsics when trying to decide wheth...
author
Anders Carlsson
<andersca@mac.com>
Mon, 21 Mar 2011 02:42:27 +0000
(
02:42
+0000)
committer
Anders Carlsson
<andersca@mac.com>
Mon, 21 Mar 2011 02:42:27 +0000
(
02:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127985
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/GlobalOpt.cpp
b/lib/Transforms/IPO/GlobalOpt.cpp
index
60ede4f
..
d8212e8
100644
(file)
--- a/
lib/Transforms/IPO/GlobalOpt.cpp
+++ b/
lib/Transforms/IPO/GlobalOpt.cpp
@@
-2742,6
+2742,13
@@
static bool cxxDtorIsEmpty(const Function &Fn,
if (!CalledFn)
return false;
+ if (unsigned IntrinsicID = CalledFn->getIntrinsicID()) {
+ // Ignore debug intrinsics.
+ if (IntrinsicID == llvm::Intrinsic::dbg_declare ||
+ IntrinsicID == llvm::Intrinsic::dbg_value)
+ continue;
+ }
+
// Don't treat recursive functions as empty.
if (!CalledFunctions.insert(CalledFn))
return false;