diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/AST/Interp/State.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/AST/Interp/State.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/AST/Interp/State.cpp b/contrib/llvm-project/clang/lib/AST/Interp/State.cpp index 47fbf5145cd4..0d9dadec4b95 100644 --- a/contrib/llvm-project/clang/lib/AST/Interp/State.cpp +++ b/contrib/llvm-project/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; } } |