r306692 - Initialize variable and silence potentially uninitialized warning.
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 09:08:10 PDT 2017
Author: vvassilev
Date: Thu Jun 29 09:08:10 2017
New Revision: 306692
URL: http://llvm.org/viewvc/llvm-project?rev=306692&view=rev
Log:
Initialize variable and silence potentially uninitialized warning.
Patch by Liza Sakellari!
Modified:
cfe/trunk/include/clang/Sema/Lookup.h
Modified: cfe/trunk/include/clang/Sema/Lookup.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Lookup.h?rev=306692&r1=306691&r2=306692&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Lookup.h (original)
+++ cfe/trunk/include/clang/Sema/Lookup.h Thu Jun 29 09:08:10 2017
@@ -465,10 +465,9 @@ public:
Paths = nullptr;
}
} else {
- AmbiguityKind SavedAK;
+ AmbiguityKind SavedAK = Ambiguity;
bool WasAmbiguous = false;
if (ResultKind == Ambiguous) {
- SavedAK = Ambiguity;
WasAmbiguous = true;
}
ResultKind = Found;
More information about the cfe-commits
mailing list