[clang] b89e09a - Silence "Undefined or garbage value returned to caller" static analysis warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Mon May 17 06:09:26 PDT 2021
Author: Simon Pilgrim
Date: 2021-05-17T14:08:27+01:00
New Revision: b89e09a19f9b60dfa9477b24a404a7ae5522f898
URL: https://github.com/llvm/llvm-project/commit/b89e09a19f9b60dfa9477b24a404a7ae5522f898
DIFF: https://github.com/llvm/llvm-project/commit/b89e09a19f9b60dfa9477b24a404a7ae5522f898.diff
LOG: Silence "Undefined or garbage value returned to caller" static analysis warning. NFCI.
Added:
Modified:
clang/lib/Driver/Driver.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 1086887a8de5..25af909d9bd2 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -3449,7 +3449,7 @@ class OffloadingActionBuilder final {
return nullptr;
// Let builders add host linking actions.
- Action* HA;
+ Action* HA = nullptr;
for (DeviceActionBuilder *SB : SpecializedBuilders) {
if (!SB->isValid())
continue;
More information about the cfe-commits
mailing list