зеркало из https://github.com/microsoft/clang-1.git
Silence some -Wuninitialized false positives with gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
98d86b98b3
Коммит
9e3c20b2b6
|
@ -1012,7 +1012,7 @@ void StmtPrinter::VisitVAArgExpr(VAArgExpr *Node) {
|
|||
}
|
||||
|
||||
void StmtPrinter::VisitAtomicExpr(AtomicExpr *Node) {
|
||||
const char *Name;
|
||||
const char *Name = 0;
|
||||
switch (Node->getOp()) {
|
||||
case AtomicExpr::Load:
|
||||
Name = "__atomic_load(";
|
||||
|
|
|
@ -2698,7 +2698,8 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E, llvm::Value *Dest) {
|
|||
// Long case, when Order isn't obviously constant.
|
||||
|
||||
// Create all the relevant BB's
|
||||
llvm::BasicBlock *MonotonicBB, *AcquireBB, *ReleaseBB, *AcqRelBB, *SeqCstBB;
|
||||
llvm::BasicBlock *MonotonicBB = 0, *AcquireBB = 0, *ReleaseBB = 0,
|
||||
*AcqRelBB = 0, *SeqCstBB = 0;
|
||||
MonotonicBB = createBasicBlock("monotonic", CurFn);
|
||||
if (E->getOp() != AtomicExpr::Store)
|
||||
AcquireBB = createBasicBlock("acquire", CurFn);
|
||||
|
|
Загрузка…
Ссылка в новой задаче