summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Interp/State.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Interp/State.cpp')
-rw-r--r--clang/lib/AST/Interp/State.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/Interp/State.cpp b/clang/lib/AST/Interp/State.cpp
index 47fbf5145cd4..0d9dadec4b95 100644
--- a/clang/lib/AST/Interp/State.cpp
+++ b/clang/lib/AST/Interp/State.cpp
@@ -155,7 +155,8 @@ void State::addCallStack(unsigned Limit) {
SmallString<128> Buffer;
llvm::raw_svector_ostream Out(Buffer);
F->describe(Out);
- addDiag(CallRange.getBegin(), diag::note_constexpr_call_here)
- << Out.str() << CallRange;
+ if (!Buffer.empty())
+ addDiag(CallRange.getBegin(), diag::note_constexpr_call_here)
+ << Out.str() << CallRange;
}
}