From 779904e538d6dcb9156f9dc0fbea20260b691944 Mon Sep 17 00:00:00 2001 From: Sean Cannella Date: Wed, 26 Jun 2013 14:47:51 -0700 Subject: [PATCH] fix potentially uninitialized warning on other platforms - fixes compiler warning about variable that might not be initialized on other platforms --- hphp/runtime/vm/jit/hhbctranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/runtime/vm/jit/hhbctranslator.cpp b/hphp/runtime/vm/jit/hhbctranslator.cpp index ababb3865..ede55a3a4 100644 --- a/hphp/runtime/vm/jit/hhbctranslator.cpp +++ b/hphp/runtime/vm/jit/hhbctranslator.cpp @@ -2586,7 +2586,7 @@ void HhbcTranslator::assertString(const Location& loc, const StringData* str) { */ RuntimeType HhbcTranslator::rttFromLocation(const Location& loc) { Type t; - SSATmp* val; + SSATmp* val = nullptr; switch (loc.space) { case Location::Stack: { auto i = loc.offset;