Page MenuHomePhabricator

D56505.diff
No OneTemporary

File Metadata

Created
Tue, Jul 23, 12:39 PM

D56505.diff

Index: llvm/trunk/include/llvm/DebugInfo/DIContext.h
===================================================================
--- llvm/trunk/include/llvm/DebugInfo/DIContext.h
+++ llvm/trunk/include/llvm/DebugInfo/DIContext.h
@@ -81,7 +81,7 @@
public:
DIInliningInfo() = default;
- DILineInfo getFrame(unsigned Index) const {
+ const DILineInfo & getFrame(unsigned Index) const {
assert(Index < Frames.size());
return Frames[Index];
}
@@ -98,6 +98,11 @@
void addFrame(const DILineInfo &Frame) {
Frames.push_back(Frame);
}
+
+ void resize(unsigned i) {
+ Frames.resize(i);
+ }
+
};
/// Container for description of a global variable.

Event Timeline