We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ff9ac commit 1bbac05Copy full SHA for 1bbac05
clang/lib/AST/ByteCode/Compiler.cpp
@@ -942,7 +942,7 @@ bool Compiler<Emitter>::VisitBinaryOperator(const BinaryOperator *BO) {
942
if (!Result)
943
return false;
944
if (DiscardResult)
945
- return this->emitPop(*T, BO);
+ return this->emitPopBool(BO);
946
if (T != PT_Bool)
947
return this->emitCast(PT_Bool, *T, BO);
948
return true;
clang/test/AST/ByteCode/c.c
@@ -362,3 +362,9 @@ void bar() { // pedantic-warning {{a function declaration without a prototype}}
362
int x;
363
x = foo(); // all-warning {{too few arguments}}
364
}
365
+
366
+int *_b = &a;
367
+void discardedCmp(void)
368
+{
369
+ (*_b) = ((&a == &a) , a); // all-warning {{left operand of comma operator has no effect}}
370
+}
0 commit comments