[cfe-dev] Build Error
David Greene
dag at cray.com
Tue Oct 11 12:16:14 PDT 2011
I'm getting the following -Werror build errors:
[off-opt] : [llvm] cc1plus: warnings being treated as errors
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/AST/StmtPrinter.cpp: In member function 'void<unnamed>::StmtPrinter::VisitAtomicExpr(clang::AtomicExpr*)':
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/AST/StmtPrinter.cpp:1015: error: 'Name' may be used uninitialized in this function
[off-opt] : [llvm] cc1plus: warnings being treated as errors
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/CodeGen/CGExpr.cpp: In member function 'clang::CodeGen::RValue clang::CodeGen::CodeGenFunction::EmitAtomicExpr(clang::AtomicExpr*, llvm::Value*)':
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:2701: error: 'AcquireBB' may be used uninitialized in this function
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:2701: error: 'AcqRelBB' may be used uninitialized in this function
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:2701: error: 'ReleaseBB' may be used uninitialized in this function
Both look to be caused by:
------------------------------------------------------------------------
r141632 | efriedma | 2011-10-10 21:20:01 -0500 (Mon, 10 Oct 2011) | 3 lines
Initial implementation of __atomic_* (everything except __atomic_is_lock_free).
------------------------------------------------------------------------
Can someone with commit access fix this? Thanks!
-Dave
More information about the cfe-dev
mailing list