mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Remove -Wunused-result
and -Wpedantic
warnings from GCC. NFC.
This commit is contained in:
parent
fbc2c5ae27
commit
48788ed811
@ -170,9 +170,9 @@ void llvm::report_bad_alloc_error(const char *Reason, bool GenCrashDiag) {
|
|||||||
// an OOM to stderr and abort.
|
// an OOM to stderr and abort.
|
||||||
const char *OOMMessage = "LLVM ERROR: out of memory\n";
|
const char *OOMMessage = "LLVM ERROR: out of memory\n";
|
||||||
const char *Newline = "\n";
|
const char *Newline = "\n";
|
||||||
(void)::write(2, OOMMessage, strlen(OOMMessage));
|
(void)!::write(2, OOMMessage, strlen(OOMMessage));
|
||||||
(void)::write(2, Reason, strlen(Reason));
|
(void)!::write(2, Reason, strlen(Reason));
|
||||||
(void)::write(2, Newline, strlen(Newline));
|
(void)!::write(2, Newline, strlen(Newline));
|
||||||
abort();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ static Value *findStoredValue(Value *AllocaValue) {
|
|||||||
if (!Store)
|
if (!Store)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return Store->getValueOperand();
|
return Store->getValueOperand();
|
||||||
};
|
}
|
||||||
|
|
||||||
TEST_F(OpenMPIRBuilderTest, CreateBarrier) {
|
TEST_F(OpenMPIRBuilderTest, CreateBarrier) {
|
||||||
OpenMPIRBuilder OMPBuilder(*M);
|
OpenMPIRBuilder OMPBuilder(*M);
|
||||||
|
Loading…
Reference in New Issue
Block a user