diff --git a/clang/lib/AST/Interp/Pointer.cpp b/clang/lib/AST/Interp/Pointer.cpp index 7f127143a99d8..9c55a55d42a74 100644 --- a/clang/lib/AST/Interp/Pointer.cpp +++ b/clang/lib/AST/Interp/Pointer.cpp @@ -159,10 +159,10 @@ bool Pointer::isInitialized() const { if (Map == (InitMap *)-1) return true; return Map->isInitialized(getIndex()); - } else { - // Field has its bit in an inline descriptor. - return Base == 0 || getInlineDesc()->IsInitialized; } + + // Field has its bit in an inline descriptor. + return Base == 0 || getInlineDesc()->IsInitialized; } void Pointer::initialize() const { @@ -185,11 +185,11 @@ void Pointer::initialize() const { free(Map); Map = (InitMap *)-1; } - } else { - // Field has its bit in an inline descriptor. - assert(Base != 0 && "Only composite fields can be initialised"); - getInlineDesc()->IsInitialized = true; } + + // Field has its bit in an inline descriptor. + assert(Base != 0 && "Only composite fields can be initialised"); + getInlineDesc()->IsInitialized = true; } void Pointer::activate() const {