OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc9864
)
Don't take the address of a temporary
author
Adrian Prantl
<aprantl@apple.com>
Fri, 8 Jan 2021 21:14:52 +0000
(13:14 -0800)
committer
Adrian Prantl
<aprantl@apple.com>
Fri, 8 Jan 2021 21:24:07 +0000
(13:24 -0800)
lldb/source/Core/ValueObject.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/ValueObject.cpp
b/lldb/source/Core/ValueObject.cpp
index
bcd76f5
..
da90092
100644
(file)
--- a/
lldb/source/Core/ValueObject.cpp
+++ b/
lldb/source/Core/ValueObject.cpp
@@
-3205,7
+3205,7
@@
bool ValueObject::CanProvideValue() {
// we need to support invalid types as providers of values because some bare-
// board debugging scenarios have no notion of types, but still manage to
// have raw numeric values for things like registers. sigh.
-
const CompilerType &type(GetCompilerType()
);
+
CompilerType type = GetCompilerType(
);
return (!type.IsValid()) || (0 != (type.GetTypeInfo() & eTypeHasValue));
}