[all-commits] [llvm/llvm-project] 35a061: [lldb/Utility] Fix unspecified behavior.
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Feb 24 21:31:39 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 35a061453579f623aca1edc7f6f23dd969c21395
https://github.com/llvm/llvm-project/commit/35a061453579f623aca1edc7f6f23dd969c21395
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2020-02-24 (Mon, 24 Feb 2020)
Changed paths:
M lldb/source/Utility/Stream.cpp
Log Message:
-----------
[lldb/Utility] Fix unspecified behavior.
Order of evaluation of the operands of any C++ operator [...] is
unspecified. This patch fixes the issue in Stream::Indent by calling the
function consecutively.
On my Windows setup, TestSettings.py fails because the function prints
the value first, followed by the indentation.
Expected result:
MY_FILE=this is a file name with spaces.txt
Actual result:
MY_FILE =this is a file name with spaces.txt
More information about the All-commits
mailing list