[all-commits] [llvm/llvm-project] c51ad1: [lldb/CMake] Don't use return() from macro()
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Fri Dec 20 20:54:24 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c51ad1f836bffb4e431eb9f948ee3a32902ba6d2
https://github.com/llvm/llvm-project/commit/c51ad1f836bffb4e431eb9f948ee3a32902ba6d2
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2019-12-20 (Fri, 20 Dec 2019)
Changed paths:
M lldb/cmake/modules/LLDBConfig.cmake
Log Message:
-----------
[lldb/CMake] Don't use return() from macro()
> A macro is executed as if the macro body were pasted in place of the
> calling statement. This has the consequence that a return() in a macro
> body does not just terminate execution of the macro
After converting from a function() to a macro(), the return() became
invalid. This modifies the control flow to elude the return.
More information about the All-commits
mailing list