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.
1 parent 610b853 commit 7d4afbaCopy full SHA for 7d4afba
clang/lib/AST/ByteCode/Function.h
@@ -103,10 +103,10 @@ class Function final {
103
/// Returns the name of the function decl this code
104
/// was generated for.
105
const std::string getName() const {
106
- if (!Source)
+ if (!Source || !getDecl())
107
return "<<expr>>";
108
109
- return Source.get<const FunctionDecl *>()->getQualifiedNameAsString();
+ return getDecl()->getQualifiedNameAsString();
110
}
111
112
/// Returns a parameter descriptor.
0 commit comments