diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-17 12:22:14 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-17 12:22:14 +0000 |
commit | 207be301e37ec95ba0cfe53d927c47722ee3e3ce (patch) | |
tree | 6349db29542f5ca4dc9f07ea8318d856c67729ab /include | |
parent | 83ae2f7c6527ce7fa932ff460c2658e7b207be35 (diff) | |
download | llvm-207be301e37ec95ba0cfe53d927c47722ee3e3ce.tar.gz llvm-207be301e37ec95ba0cfe53d927c47722ee3e3ce.tar.bz2 llvm-207be301e37ec95ba0cfe53d927c47722ee3e3ce.tar.xz |
Inliner::OptimizationRemark: Fix crash in clang/test/Frontend/optimization-remark.c on some hosts, including --vg.
DebugLoc in Callsite would not live after Inliner. It should be copied before Inliner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/DiagnosticInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h index e082035795..604de1fed9 100644 --- a/include/llvm/IR/DiagnosticInfo.h +++ b/include/llvm/IR/DiagnosticInfo.h @@ -17,6 +17,7 @@ #include "llvm-c/Core.h" #include "llvm/ADT/ArrayRef.h" +#include "llvm/IR/DebugLoc.h" #include "llvm/Support/Casting.h" namespace llvm { @@ -289,7 +290,7 @@ private: const Function &Fn; /// Debug location where this diagnostic is triggered. - const DebugLoc &DLoc; + DebugLoc DLoc; /// Message to report. const Twine &Msg; |