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 9727a9e + ddf8148 commit 72ad29aCopy full SHA for 72ad29a
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"
@@ -1976,7 +1977,7 @@ void IRGenDebugInfoImpl::emitDbgIntrinsic(
1976
1977
auto *BB = Builder.GetInsertBlock();
1978
1979
// An alloca may only be described by exactly one dbg.declare.
- if (isa<llvm::AllocaInst>(Storage) && llvm::FindAllocaDbgDeclare(Storage))
1980
+ if (isa<llvm::AllocaInst>(Storage) && !llvm::FindDbgAddrUses(Storage).empty())
1981
return;
1982
1983
// A dbg.declare is only meaningful if there is a single alloca for
0 commit comments