aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-12 00:10:49 +0000
committerReid Kleckner <rnk@google.com>2017-05-12 00:10:49 +0000
commitf70ee60e075bcbf9f3a15e3f3021589cf50ff7c3 (patch)
treec0f54976d8bb6a98a2897723b73d36c72c614676 /clang/lib/CodeGen/CodeGenAction.cpp
parent0f442bcdd019eebd8350719c8f20a696fe1f0593 (diff)
downloadllvm-f70ee60e075bcbf9f3a15e3f3021589cf50ff7c3.zip
llvm-f70ee60e075bcbf9f3a15e3f3021589cf50ff7c3.tar.gz
llvm-f70ee60e075bcbf9f3a15e3f3021589cf50ff7c3.tar.bz2
Fix uninitialized bool read causing x86_64-mno-sse.c test failure
llvm-svn: 302854
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index f57cbe8..c7e30fa 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -548,9 +548,9 @@ void BackendConsumer::UnsupportedDiagHandler(
StringRef Filename;
unsigned Line, Column;
- bool BadDebugInfo;
- FullSourceLoc Loc = getBestLocationFromDebugLoc(D, BadDebugInfo, Filename,
- Line, Column);
+ bool BadDebugInfo = false;
+ FullSourceLoc Loc =
+ getBestLocationFromDebugLoc(D, BadDebugInfo, Filename, Line, Column);
Diags.Report(Loc, diag::err_fe_backend_unsupported) << D.getMessage().str();
@@ -572,8 +572,8 @@ void BackendConsumer::EmitOptimizationMessage(
StringRef Filename;
unsigned Line, Column;
bool BadDebugInfo = false;
- FullSourceLoc Loc = getBestLocationFromDebugLoc(D, BadDebugInfo, Filename,
- Line, Column);
+ FullSourceLoc Loc =
+ getBestLocationFromDebugLoc(D, BadDebugInfo, Filename, Line, Column);
std::string Msg;
raw_string_ostream MsgStream(Msg);