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.
2 parents 6b48102 + bf30b39 commit 1c17a90Copy full SHA for 1c17a90
lib/IRGen/IRGenDebugInfo.cpp
@@ -45,6 +45,7 @@
45
#include "llvm/Config/config.h"
46
#include "llvm/IR/DIBuilder.h"
47
#include "llvm/IR/DebugInfo.h"
48
+#include "llvm/IR/IntrinsicInst.h"
49
#include "llvm/IR/Module.h"
50
#include "llvm/Support/CommandLine.h"
51
#include "llvm/Support/Debug.h"
@@ -2003,7 +2004,7 @@ void IRGenDebugInfoImpl::emitDbgIntrinsic(
2003
2004
auto *BB = Builder.GetInsertBlock();
2005
2006
// An alloca may only be described by exactly one dbg.declare.
- if (isa<llvm::AllocaInst>(Storage) && llvm::FindAllocaDbgDeclare(Storage))
2007
+ if (isa<llvm::AllocaInst>(Storage) && !llvm::FindDbgAddrUses(Storage).empty())
2008
return;
2009
2010
// A dbg.declare is only meaningful if there is a single alloca for
0 commit comments