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:
Eli Friedman 2011-10-11 20:00:47 +00:00
Родитель 98d86b98b3
Коммит 9e3c20b2b6
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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);