rsmith added inline comments.

================
Comment at: clang/lib/AST/ExprConstant.cpp:9801-9804
+    return EvaluateInPlace(Result.getUnionValue(), Info, Subobject, InitExpr) 
||
+           (Field->isBitField() &&
+            truncateBitfieldValue(Info, InitExpr, Result.getUnionValue(),
+                                  Field));
----------------
Shouldn't this be `&&` not `||`? These functions return `true` if they succeed 
(unlike the convention in `Sema` where `true` means an error diagnostic was 
produced).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93101/new/

https://reviews.llvm.org/D93101

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to